X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fpref%2Fpref.html;h=5f68d3e460e7f4efa82b6a6ed7ea874998bb7883;hb=618c671fd12beb2122a4c32c0042546a19a9c765;hp=a0d7be64e2f0105f268671fd7414ba65542e895c;hpb=2826caa0a8c886d6177c12467a64350f03372a78;p=freeside.git diff --git a/httemplate/pref/pref.html b/httemplate/pref/pref.html index a0d7be64e..5f68d3e46 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 &> @@ -27,6 +29,18 @@
+ <% emt('Google Authenticator') %> + + +% if ( $curuser->totp_secret32 ) { + +% } else { + +% } + +
Enable
+
+ % } <% emt("Interface") %> @@ -50,7 +64,7 @@ <% emt("Menu location:") %> > <% emt("Left") %>
- > <% emt("Top") %>
+ > <% emt("Top") %>
@@ -136,13 +150,6 @@ - - <% emt('Hide notification of new ticket activity') %> - - option('hide_notify_tickets') ? 'CHECKED' : '' %>> - - - <% emt("How many recently-modified customers displayed on dashboard") %> @@ -150,10 +157,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") %> - + @@ -267,7 +278,11 @@ "> -<&/elements/footer.html &> +% my %footerdata = ( +% 'formvalidation' => $js_form_validate, +% ); +<% include("/elements/footer.html", %footerdata) %> + <%init> my $curuser = $FS::CurrentUser::CurrentUser;