X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fpref%2Fpref.html;h=ceafa9850f6499f5c008111bdb0a228f15bd616c;hb=354d94625f6bd4a484c52c89774ad53b3b1c50ea;hp=724967d95079f637dcd838ed6cb60e4bdba8f689;hpb=611a7c3b4b717a595a530402d15c1960ba3424bd;p=freeside.git diff --git a/httemplate/pref/pref.html b/httemplate/pref/pref.html index 724967d95..ceafa9850 100644 --- a/httemplate/pref/pref.html +++ b/httemplate/pref/pref.html @@ -1,13 +1,17 @@ <& /elements/header.html, mt('Preferences for [_1]', $FS::CurrentUser::CurrentUser->username) &> +% my $js_form_validate = { 'pref_form' => { 'name' => 'pref_form' } }; +
<& /elements/error.html &> +<& /elements/alert.html &> + % if ( FS::Auth->auth_class->can('change_password') ) { - <% emt('Change password (leave blank for no change)') %> - <% ntable("#cccccc",2) %> + <% emt('Change password (leave blank for no change)') %> + @@ -29,8 +33,8 @@ % } -<% emt("Interface") %> -<% ntable("#cccccc",2) %> +<% emt("Interface") %> +
<% emt("Current password:") %>
@@ -47,10 +51,10 @@ - + @@ -130,7 +134,7 @@ - + @@ -143,10 +147,14 @@ +% my $validate_field_cve = 'customer_view_emails'; +% $js_form_validate->{pref_form}->{validate_fields}{$validate_field_cve} = 'digits: true'; +% $js_form_validate->{pref_form}->{error_message}{$validate_field_cve} = 'Please only enter numbers here.'; + + @@ -154,8 +162,8 @@
-<% emt("Email Address") %> -<% ntable("#cccccc",2) %> +<% emt("Email Address") %> +
<% emt("Locale:") %>
<% emt("Menu location:") %> <% emt("Menu location:") %> > <% emt("Left") %>
- > <% emt("Top") %>
+ > <% emt("Top") %>
<% emt("Scale documents to fit on a letter-size page") %><% emt("When printing, scale HTML documents to fit on a letter-size page") %> option('printtofit') ? 'CHECKED' : '' %>>
<% emt("How many recent outbound emails to show in customer view") %> -
@@ -168,8 +176,8 @@
-<% emt("Development") %> -<% ntable("#cccccc",2) %> +<% emt("Development") %> +
<% emt("Email Address(es) (comma separated) ") %>
@@ -260,7 +268,11 @@ "> -<&/elements/footer.html &> +% my %footerdata = ( +% 'formvalidation' => $js_form_validate, +% ); +<% include("/elements/footer.html", %footerdata) %> + <%init> my $curuser = $FS::CurrentUser::CurrentUser;
<% emt("Show customer package timestamps:") %>