X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fpref%2Fpref.html;h=56fde6d443e814554d01bd6033d783eb06beb194;hb=368ed08e24400e9d1faf401a1e4e23ea54d2c969;hp=f26d209d6ab545e8817ed183e9cb972745c207b2;hpb=ecd038f7ae5c1ffc929f3c928ecd161eeb45d9be;p=freeside.git diff --git a/httemplate/pref/pref.html b/httemplate/pref/pref.html index f26d209d6..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 &> @@ -50,7 +52,7 @@ <% emt("Menu location:") %> > <% emt("Left") %>
- > <% emt("Top") %>
+ > <% emt("Top") %>
@@ -130,30 +132,27 @@ - <% 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('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;