X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fpref%2Fpref.html;h=56fde6d443e814554d01bd6033d783eb06beb194;hb=697a8343f7ef80f69c1b974515550afc6b794010;hp=724967d95079f637dcd838ed6cb60e4bdba8f689;hpb=611a7c3b4b717a595a530402d15c1960ba3424bd;p=freeside.git diff --git a/httemplate/pref/pref.html b/httemplate/pref/pref.html index 724967d95..56fde6d44 100644 --- a/httemplate/pref/pref.html +++ b/httemplate/pref/pref.html @@ -1,13 +1,15 @@ <& /elements/header.html, mt('Preferences for [_1]', $FS::CurrentUser::CurrentUser->username) &> +% my $js_form_validate = { 'pref_form' => { 'name' => 'pref_form' } }; +
<& /elements/error.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 +31,8 @@ % } -<% emt("Interface") %> -<% ntable("#cccccc",2) %> +<% emt("Interface") %> +
<% emt("Current password:") %>
@@ -47,10 +49,10 @@ - + @@ -130,7 +132,7 @@ - + @@ -143,10 +145,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 +160,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 +174,8 @@
-<% emt("Development") %> -<% ntable("#cccccc",2) %> +<% emt("Development") %> +
<% emt("Email Address(es) (comma separated) ") %>
@@ -260,7 +266,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:") %>