X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Fpref%2Fpref.html;h=c50f5ca3cc656815b1e887edfbcf2b5656234aca;hp=bb21b0f3c478b8558d2b5fae14f72f40c6ef44ec;hb=7c2e37568823941b026b990c4db3bccd413d2d6e;hpb=1d402148bc96f421bc82bdece6dfd68ccf9509a3 diff --git a/httemplate/pref/pref.html b/httemplate/pref/pref.html index bb21b0f3c..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)') %> @@ -137,23 +141,20 @@ - <% emt('Hide notification of new ticket activity') %> - - option('hide_notify_tickets') ? 'CHECKED' : '' %>> - - - - <% emt("How many recently-modified customers displayed on dashboard") %> +% 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") %> - + @@ -267,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;