X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fpref%2Fpref.html;h=56fde6d443e814554d01bd6033d783eb06beb194;hb=01c9143a54bf5e1513537547fd362822f58d1e2a;hp=bb21b0f3c478b8558d2b5fae14f72f40c6ef44ec;hpb=1d402148bc96f421bc82bdece6dfd68ccf9509a3;p=freeside.git diff --git a/httemplate/pref/pref.html b/httemplate/pref/pref.html index bb21b0f3c..56fde6d44 100644 --- a/httemplate/pref/pref.html +++ b/httemplate/pref/pref.html @@ -1,5 +1,7 @@ <& /elements/header.html, mt('Preferences for [_1]', $FS::CurrentUser::CurrentUser->username) &> +% my $js_form_validate = { 'pref_form' => { 'name' => 'pref_form' } }; +
<& /elements/error.html &> @@ -137,23 +139,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 +266,11 @@ "> -<&/elements/footer.html &> +% my %footerdata = ( +% 'formvalidation' => $js_form_validate, +% ); +<% include("/elements/footer.html", %footerdata) %> + <%init> my $curuser = $FS::CurrentUser::CurrentUser;