X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Fpref%2Fpref.html;h=c50f5ca3cc656815b1e887edfbcf2b5656234aca;hp=0f23a0cbac13480e0daf2e74f65bbfe110828f30;hb=7c2e37568823941b026b990c4db3bccd413d2d6e;hpb=9054e70201187c69341ddd559350e64ffccdff0f diff --git a/httemplate/pref/pref.html b/httemplate/pref/pref.html index 0f23a0cba..c50f5ca3c 100644 --- a/httemplate/pref/pref.html +++ b/httemplate/pref/pref.html @@ -1,9 +1,13 @@ <& /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)') %> @@ -50,7 +54,7 @@ <% emt("Menu location:") %> > <% emt("Left") %>
- > <% emt("Top") %>
+ > <% emt("Top") %>
@@ -130,7 +134,7 @@ - <% 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' : '' %>> @@ -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.'; + <% emt("How many recent outbound emails to show in customer view") %> - + @@ -260,7 +268,13 @@ "> -<&/elements/footer.html &> +% my %footerdata = ( +% 'formvalidation' => $js_form_validate, +% ); +<% include("/elements/footer.html", %footerdata) %> + +%#<&/elements/footer.html &> + <%init> my $curuser = $FS::CurrentUser::CurrentUser;