X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fpref%2Fpref.html;h=56fde6d443e814554d01bd6033d783eb06beb194;hb=refs%2Fheads%2Fmaster;hp=724967d95079f637dcd838ed6cb60e4bdba8f689;hpb=611a7c3b4b717a595a530402d15c1960ba3424bd;p=freeside.git diff --git a/httemplate/pref/pref.html b/httemplate/pref/pref.html index 724967d95..5f68d3e46 100644 --- a/httemplate/pref/pref.html +++ b/httemplate/pref/pref.html @@ -1,13 +1,15 @@ <& /elements/header.html, mt('Preferences for [_1]', $FS::CurrentUser::CurrentUser->username) &> +% my $js_form_validate = { 'pref_form' => { 'name' => 'pref_form' } }; +
<& /elements/error.html &> % if ( FS::Auth->auth_class->can('change_password') ) { - <% emt('Change password (leave blank for no change)') %> - <% ntable("#cccccc",2) %> + <% emt('Change password (leave blank for no change)') %> + @@ -27,10 +29,22 @@
<% emt("Current password:") %>

+ <% emt('Google Authenticator') %> + + +% if ( $curuser->totp_secret32 ) { + +% } else { + +% } + +
Enable
+
+ % } -<% emt("Interface") %> -<% ntable("#cccccc",2) %> +<% emt("Interface") %> + @@ -47,10 +61,10 @@ - + @@ -130,7 +144,7 @@ - + @@ -143,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.'; + + @@ -154,8 +172,8 @@
-<% emt("Email Address") %> -<% ntable("#cccccc",2) %> +<% emt("Email Address") %> +
<% emt("Locale:") %>
<% emt("Menu location:") %> <% emt("Menu location:") %> > <% emt("Left") %>
- > <% emt("Top") %>
+ > <% emt("Top") %>
<% 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("How many recent outbound emails to show in customer view") %> -
@@ -168,8 +186,8 @@
-<% emt("Development") %> -<% ntable("#cccccc",2) %> +<% emt("Development") %> +
<% emt("Email Address(es) (comma separated) ") %>
@@ -260,7 +278,11 @@ "> -<&/elements/footer.html &> +% my %footerdata = ( +% 'formvalidation' => $js_form_validate, +% ); +<% include("/elements/footer.html", %footerdata) %> + <%init> my $curuser = $FS::CurrentUser::CurrentUser;
<% emt("Show customer package timestamps:") %>