X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fpref%2Fpref.html;h=29aeb4c67a86c936799fefa2ad4250623edee0f2;hb=62b18c75989a1b00a25079f8f110992aaad81bba;hp=5babb018118debf0b68bd826ed1feda2aa8a3a19;hpb=f3e0ac2b009c4edd5692cb587ff709dac2223ebe;p=freeside.git diff --git a/httemplate/pref/pref.html b/httemplate/pref/pref.html index 5babb0181..29aeb4c67 100644 --- a/httemplate/pref/pref.html +++ b/httemplate/pref/pref.html @@ -1,5 +1,7 @@ <% include('/elements/header.html', 'Preferences for '. getotaker ) %> +% my $js_form_validate = { 'pref_form' => { 'name' => 'pref_form' } }; +
<% include('/elements/error.html') %> @@ -106,6 +108,12 @@ Interface +% if ( FS::Conf->new->exists('enable_fuzzy_on_exact') ) { + + + +% } else { + Enable approximate customer searching
even when an exact match is found: @@ -113,6 +121,8 @@ Interface +% } + Disable HTML editor for customer notes: @@ -127,6 +137,38 @@ Interface + + Don't copy MAC address delimiters to clipboard + + option('enable_mask_clipboard_hack') ? 'CHECKED' : '' %>> + + + + + When printing, scale HTML documents to fit on a letter-size page + + option('printtofit') ? '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.'; + + + How many recent outbound emails to show in customer view + + + + +
@@ -135,7 +177,7 @@ Email Address <% ntable("#cccccc",2) %> - Email Address(es) (comma separated) + <% emt("Email Address(es) (comma separated) ") %> @@ -180,6 +222,8 @@ Development
+% if ( $curuser->access_right('Employee preference telephony integration') ) { + SNOM integration <% ntable("#cccccc",2) %> @@ -224,6 +268,7 @@ Vonage integration (see Click2Call
+% } % foreach my $prop (qw( height width availHeight availWidth colorDepth )) { @@ -234,7 +279,11 @@ Vonage integration (see Click2Call -<% include('/elements/footer.html') %> +% my %footerdata = ( +% 'formvalidation' => $js_form_validate, +% ); +<% include("/elements/footer.html", %footerdata) %> + <%init> my $curuser = $FS::CurrentUser::CurrentUser; @@ -257,7 +306,7 @@ $customer_views{'Jumbo'} = 'jumbo'; =~ /^(\w+)$/ or die "illegal menu_position"; my $menu_position = $1; ( $curuser->option('email_address') ) - =~ /^([,\w\@.]*)$/ or die "illegal email_address"; #too late + =~ /^([,\w\@.\-]*)$/ or die "illegal email_address"; #too late my $email_address = $1;