-<% include('/elements/header.html', 'Preferences for '. $FS::CurrentUser::CurrentUser->username ) %>
+<& /elements/header.html, mt('Preferences for [_1]', $FS::CurrentUser::CurrentUser->username) &>
+
+% my $js_form_validate = { 'pref_form' => { 'name' => 'pref_form' } };
- <% mt('Change password (leave blank for no change)') |h %>
- <% ntable("#cccccc",2) %>
+ <FONT CLASS="fsinnerbox-title"><% emt('Change password (leave blank for no change)') %></FONT>
+ <TABLE CLASS="fsinnerbox">
% my %info = FS::Locales->locale_info($locale);
% my $selected = ($locale eq $curuser->option('locale'))
% ? 'SELECTED' : '';
% my %info = FS::Locales->locale_info($locale);
% my $selected = ($locale eq $curuser->option('locale'))
% ? 'SELECTED' : '';
- <INPUT TYPE="radio" NAME="menu_position" VALUE="left" onClick="document.images['menu_example'].src='../images/menu-left-example.png';" <% $menu_position eq 'left' ? ' CHECKED' : ''%>> Left<BR>
- <INPUT TYPE="radio" NAME="menu_position" VALUE="top"onClick="document.images['menu_example'].src='../images/menu-top-example.png';" <% $menu_position eq 'top' ? ' CHECKED' : ''%>> Top <BR>
+ <INPUT TYPE="radio" NAME="menu_position" VALUE="left" onClick="document.images['menu_example'].src='../images/menu-left-example.png';" <% $menu_position eq 'left' ? ' CHECKED' : ''%>> <% emt("Left") %><BR>
+ <INPUT TYPE="radio" NAME="menu_position" VALUE="top" onClick="document.images['menu_example'].src='../images/menu-top-example.png';" <% $menu_position eq 'top' ? ' CHECKED' : ''%>> <% emt("Top") %> <BR>
<TD COLSPAN=2>
<INPUT TYPE="checkbox" NAME="mobile_menu" VALUE="Y"
<% $curuser->option('mobile_menu') ? 'CHECKED' : '' %>>
<TD COLSPAN=2>
<INPUT TYPE="checkbox" NAME="mobile_menu" VALUE="Y"
<% $curuser->option('mobile_menu') ? 'CHECKED' : '' %>>
<TD COLSPAN=2>
<& /elements/select.html,
field => 'history_order',
curr_value => $history_order,
options => [ 'oldest', 'newest' ],
<TD COLSPAN=2>
<& /elements/select.html,
field => 'history_order',
curr_value => $history_order,
options => [ 'oldest', 'newest' ],
- labels => { 'oldest' => 'Oldest first',
- 'newest' => 'Newest first',
+ labels => { 'oldest' => mt('Oldest first'),
+ 'newest' => mt('Newest first'),
-% if ( FS::Conf->new->exists('enable_fuzzy_on_exact') ) {
-
- <INPUT TYPE="hidden" NAME="enable_fuzzy_on_exact" VALUE="<% $curuser->option('enable_fuzzy_on_exact') ? 1 : 0 %>">
-
-% } else {
-
- <TR>
- <TH ALIGN="right" COLSPAN=1>Enable approximate customer searching <BR>even when an exact match is found: </TH>
+ <TR>
+ <TH ALIGN="right" COLSPAN=1><% emt("Disable HTML editor for customer notes:") %> </TH>
- <INPUT TYPE="checkbox" NAME="disable_html_editor" VALUE="1" <% $curuser->option('disable_html_editor') ? 'CHECKED' : '' %>>
+ <INPUT TYPE="checkbox" NAME="enable_mask_clipboard_hack" VALUE="1" <% $curuser->option('enable_mask_clipboard_hack') ? 'CHECKED' : '' %>>
+ </TD>
+ </TR>
+
+ <TR>
+ <TH ALIGN="right"><% emt("When printing, scale HTML documents to fit on a letter-size page") %></TH>
+ <TD ALIGN="left">
+ <INPUT TYPE="checkbox" NAME="printtofit" VALUE="Y" <% $curuser->option('printtofit') ? 'CHECKED' : '' %>>
% foreach my $prop (qw( height width availHeight availWidth colorDepth )) {
<INPUT TYPE="hidden" NAME="<% $prop %>" VALUE="">
% foreach my $prop (qw( height width availHeight availWidth colorDepth )) {
<INPUT TYPE="hidden" NAME="<% $prop %>" VALUE="">
-<INPUT TYPE="submit" VALUE="Update preferences">
+<INPUT TYPE="submit" VALUE="<% emt("Update preferences") %>">
+
+% my %footerdata = (
+% 'formvalidation' => $js_form_validate,
+% );
+<% include("/elements/footer.html", %footerdata) %>
'Packages' => 'packages',
'Payment History' => 'payment_history',
;
$customer_views{'Change History'} = 'change_history'
if $curuser->access_right('View customer history');
'Packages' => 'packages',
'Payment History' => 'payment_history',
;
$customer_views{'Change History'} = 'change_history'
if $curuser->access_right('View customer history');
# XSS via your own preferences? seems unlikely, but nice try anyway...
( $curuser->option('menu_position') || 'top' )
=~ /^(\w+)$/ or die "illegal menu_position";
my $menu_position = $1;
( $curuser->option('email_address') )
# XSS via your own preferences? seems unlikely, but nice try anyway...
( $curuser->option('menu_position') || 'top' )
=~ /^(\w+)$/ or die "illegal menu_position";
my $menu_position = $1;
( $curuser->option('email_address') )