diff options
author | Ivan Kohler <ivan@freeside.biz> | 2015-06-14 14:56:51 -0700 |
---|---|---|
committer | Ivan Kohler <ivan@freeside.biz> | 2015-06-14 14:56:51 -0700 |
commit | 5b507bd1cb845ef44a49f84d4f0ae20ec80118d5 (patch) | |
tree | 0a646991e659b684ca60796f56164934512e65e4 /httemplate/edit/cust_main | |
parent | a5ebbe70342d11b17754ac95d00d6b71df0cd632 (diff) |
UI spring cleaning: customer edit
Diffstat (limited to 'httemplate/edit/cust_main')
-rw-r--r-- | httemplate/edit/cust_main/billing.html | 24 | ||||
-rw-r--r-- | httemplate/edit/cust_main/contacts_new.html | 16 | ||||
-rw-r--r-- | httemplate/edit/cust_main/cust_payby.html | 17 | ||||
-rw-r--r-- | httemplate/edit/cust_main/first_pkg.html | 2 | ||||
-rw-r--r-- | httemplate/edit/cust_main/first_pkg/svc_acct.html | 14 | ||||
-rw-r--r-- | httemplate/edit/cust_main/first_pkg/svc_dsl.html | 16 | ||||
-rw-r--r-- | httemplate/edit/cust_main/first_pkg/svc_phone.html | 12 |
7 files changed, 53 insertions, 48 deletions
diff --git a/httemplate/edit/cust_main/billing.html b/httemplate/edit/cust_main/billing.html index d25e88712..c3e89226b 100644 --- a/httemplate/edit/cust_main/billing.html +++ b/httemplate/edit/cust_main/billing.html @@ -15,7 +15,7 @@ <BR><FONT CLASS="fsinnerbox-title"><% mt('Billing information') |h %></FONT> - <% &ntable("#cccccc") %> + <TABLE CLASS="fsinnerbox"> % my $curuser = $FS::CurrentUser::CurrentUser; @@ -63,7 +63,7 @@ % #escape $exempt_group for NAME etc. % my $checked = ($cust_main_exemption || $cgi->param("tax_$exempt_group")); <TR> - <TD> <INPUT TYPE="checkbox" NAME="tax_<% $exempt_group %>" ID="tax_<% $exempt_group %>" VALUE="Y" <% $checked ? 'CHECKED' : '' %> onChange="tax_changed(this)"> Tax Exempt (<% $exempt_group %> taxes)</TD> + <TD STYLE="white-space:nowrap"> <INPUT TYPE="checkbox" NAME="tax_<% $exempt_group %>" ID="tax_<% $exempt_group %>" VALUE="Y" <% $checked ? 'CHECKED' : '' %> onChange="tax_changed(this)"> Tax Exempt (<% $exempt_group %> taxes)</TD> <TD> - Exemption number <INPUT TYPE="text" NAME="tax_<% $exempt_group %>_num" ID="tax_<% $exempt_group %>_num" VALUE="<% $cgi->param("tax_$exempt_group".'_num') || ( $cust_main_exemption ? $cust_main_exemption->exempt_number : '' ) |h %>" <% $checked ? '' : 'DISABLED' %>></TD> </TR> % } @@ -108,7 +108,7 @@ % unless ( $conf->exists('cust-email-high-visibility')) { <TR> - <TD ALIGN="right" WIDTH="200"> + <TH ALIGN="right" WIDTH="200"> <% $conf->exists('cust_main-require_invoicing_list_email', $agentnum) ? $r : '' %>Email address(es) </TD> @@ -117,7 +117,7 @@ ( $cust_main->message_noemail eq 'Y' ) ? 'CHECKED' : '' - %>> <% emt('Do not send notices') %> + %>> <FONT SIZE="-1"><% emt('Do not send notices') %></FONT> </TD> </TR> % } @@ -128,7 +128,7 @@ % if ( $conf->exists('cust_main-select-prorate_day') ) { <TR> - <TD ALIGN="right" WIDTH="200"><% mt('Prorate day (1-28)') |h %> </TD> + <TH ALIGN="right" WIDTH="200"><% mt('Prorate day (1-28)') |h %> </TD> <TD> <INPUT TYPE="text" NAME="prorate_day" VALUE="<% $cust_main->prorate_day %>" SIZE=3 MAXLENGTH=2> </TD> @@ -142,7 +142,7 @@ % ### <TR> - <TD ALIGN="right" WIDTH="200"><% mt('Charge card/e-check on this day of the month') |h %> </TD> + <TH ALIGN="right" WIDTH="200"><% mt('Charge card/e-check on this day of the month') |h %> </TD> <TD> <SELECT NAME="billday"> <% billday_options($cust_main->billday) %> @@ -166,7 +166,7 @@ % ### <TR> - <TD ALIGN="right" WIDTH="200"><% mt('Invoice terms') |h %> </TD> + <TH ALIGN="right" WIDTH="200"><% mt('Invoice terms') |h %> </TD> <TD WIDTH="408"> <& /elements/select-terms.html, 'curr_value' => $cust_main->invoice_terms, @@ -180,7 +180,7 @@ % ### <TR> - <TD ALIGN="right" WIDTH="200"><% mt('Credit limit') |h %> </TD> + <TH ALIGN="right" WIDTH="200"><% mt('Credit limit') |h %> </TD> <TD WIDTH="408"> <SCRIPT TYPE="text/javascript"> function toggle(obj) { @@ -198,12 +198,14 @@ function toggle(obj) { VALUE = 1 onClick="toggle(this)" <% length($cust_main->credit_limit) ? '' : ' CHECKED'%> - > <% $default_credit_limit + > <FONT SIZE="-1" COLOR="#333333"> + <% $default_credit_limit ? "Default ($money_char". sprintf("%.2f", $default_credit_limit). ")" : mt('Unlimited') |h - %> + %> + </FONT> </TD> </TR> @@ -250,7 +252,7 @@ function toggle(obj) { % if ( $show_term || $cust_main->cdr_termination_percentage ) { <TR> - <TD ALIGN="right"><% mt('CDR termination settlement') |h %></TD> + <TH ALIGN="right"><% mt('CDR termination settlement') |h %></TD> <TD><INPUT TYPE = "text" NAME = "cdr_termination_percentage" SIZE = 6 diff --git a/httemplate/edit/cust_main/contacts_new.html b/httemplate/edit/cust_main/contacts_new.html index 9ccb45f6a..1171e7df4 100644 --- a/httemplate/edit/cust_main/contacts_new.html +++ b/httemplate/edit/cust_main/contacts_new.html @@ -1,12 +1,15 @@ <DIV ID="contacts_div" STYLE="display:<% $display %>"> +<BR> <FONT CLASS="fsinnerbox-title">Contacts</FONT> <% include('/edit/elements/edit.html', - 'embed' => $opt{cust_main}, - 'table' => 'cust_main', - 'labels' => { 'contactnum' => '', #'Contact', - #'locationnum' => ' ', - }, - 'fields' => [ + 'embed' => $opt{cust_main}, + 'table' => 'cust_main', + 'agent_virt' => 1, + 'html_table_class' => 'fsinnerbox', + 'labels' => { 'contactnum' => '', #'Contact', + #'locationnum' => ' ', + }, + 'fields' => [ { 'field' => 'contactnum', 'type' => 'contact', 'colspan' => 6, @@ -17,7 +20,6 @@ 'm2_error_callback' => $m2_error_callback, }, ], - 'agent_virt' => 1, ) %> </DIV> diff --git a/httemplate/edit/cust_main/cust_payby.html b/httemplate/edit/cust_main/cust_payby.html index cf0ada982..589c6a77b 100644 --- a/httemplate/edit/cust_main/cust_payby.html +++ b/httemplate/edit/cust_main/cust_payby.html @@ -1,11 +1,13 @@ <% include('/edit/elements/edit.html', - 'embed' => $opt{cust_main}, - 'tablenum' => 1, - 'table' => 'cust_main', - 'labels' => { 'custpaybynum' => '', - #'locationnum' => ' ', - }, - 'fields' => [ + 'embed' => $opt{cust_main}, + 'tablenum' => 1, + 'table' => 'cust_main', + 'agent_virt' => 1, + 'html_table_class' => 'fsinnerbox', + 'labels' => { 'custpaybynum' => '', + #'locationnum' => ' ', + }, + 'fields' => [ { 'field' => 'custpaybynum', 'type' => 'cust_payby', 'colspan' => 6, @@ -16,7 +18,6 @@ 'm2_error_callback' => $m2_error_callback, }, ], - 'agent_virt' => 1, ) %> </DIV> diff --git a/httemplate/edit/cust_main/first_pkg.html b/httemplate/edit/cust_main/first_pkg.html index ad118b4a9..6845b2c90 100644 --- a/httemplate/edit/cust_main/first_pkg.html +++ b/httemplate/edit/cust_main/first_pkg.html @@ -8,7 +8,7 @@ <BR> <FONT CLASS="fsinnerbox-title"><% mt('First package') |h %></FONT> - <% ntable("#cccccc") %> + <TABLE BORDER=0 CELLSPACING=0> <TR> <TD COLSPAN=2> diff --git a/httemplate/edit/cust_main/first_pkg/svc_acct.html b/httemplate/edit/cust_main/first_pkg/svc_acct.html index 717bf5025..8308af431 100644 --- a/httemplate/edit/cust_main/first_pkg/svc_acct.html +++ b/httemplate/edit/cust_main/first_pkg/svc_acct.html @@ -1,7 +1,7 @@ -<% ntable("#cccccc") %> +<TABLE CLASS="fsinnerbox"> <TR> - <TD ALIGN="right"><% mt('Username') |h %></TD> + <TH ALIGN="right"><% mt('Username') |h %></TD> <TD> <INPUT TYPE = "text" NAME = "username" @@ -13,7 +13,7 @@ </TR> <TR> - <TD ALIGN="right"><% mt('Domain') |h %></TD> + <TH ALIGN="right"><% mt('Domain') |h %></TD> <TD> <SELECT NAME="domsvc"> <OPTION>(<% mt('none') |h %>)</OPTION> @@ -22,7 +22,7 @@ </TR> <TR> - <TD ALIGN="right"><% mt('Password') |h %></TD> + <TH ALIGN="right"><% mt('Password') |h %></TD> <TD> <INPUT TYPE = "text" NAME = "_password" @@ -37,7 +37,7 @@ % if ( $opt{'password_verify'} ) { <TR> - <TD ALIGN="right"><% mt('Re-enter Password') |h %></TD> + <TH ALIGN="right"><% mt('Re-enter Password') |h %></TD> <TD> <INPUT TYPE = "text" NAME = "_password2" @@ -50,7 +50,7 @@ % if ( $conf->exists('security_phrase') ) { <TR> - <TD ALIGN="right"><% mt('Security Phrase') |h %></TD> + <TH ALIGN="right"><% mt('Security Phrase') |h %></TD> <TD><INPUT TYPE="text" NAME="sec_phrase" VALUE="<% $opt{'sec_phrase'} |h %>"> </TD> </TR> @@ -62,7 +62,7 @@ <INPUT TYPE="hidden" NAME="popnum" VALUE=""> % } else { <TR> - <TD ALIGN="right"><% mt('Access number') |h %></TD> + <TH ALIGN="right"><% mt('Access number') |h %></TD> %# XXX should gain "area code" selection and labels on the dropdowns <TD><% FS::svc_acct_pop::popselector($opt{'popnum'}) %></TD> </TR> diff --git a/httemplate/edit/cust_main/first_pkg/svc_dsl.html b/httemplate/edit/cust_main/first_pkg/svc_dsl.html index 971f4be33..31f4b5c63 100644 --- a/httemplate/edit/cust_main/first_pkg/svc_dsl.html +++ b/httemplate/edit/cust_main/first_pkg/svc_dsl.html @@ -1,4 +1,4 @@ -<% ntable("#cccccc") %> +<TABLE CLASS="fsinnerbox"> % if ( $opt{'phonenum'} ) { @@ -6,12 +6,12 @@ <INPUT TYPE="hidden" NAME="phonenum" VALUE="<% $opt{'phonenum'} %>"> <TR> - <TD ALIGN="right">Loop Type</TD> + <TH ALIGN="right">Loop Type</TD> <TD BGCOLOR="#eeeeee">Line-share</TD> </TR> <TR> - <TD ALIGN="right">Phone Number</TD> + <TH ALIGN="right">Phone Number</TD> <TD BGCOLOR="#eeeeee"><% $opt{'phonenum'} %></TD> </TR> @@ -21,14 +21,14 @@ <INPUT TYPE="hidden" NAME="phonenum" VALUE=""> <TR> - <TD ALIGN="right">Loop Type</TD> + <TH ALIGN="right">Loop Type</TD> <TD BGCOLOR="#eeeeee">Standalone</TD> </TR> % } <TR> - <TD ALIGN="right">PPPoE password</TD> + <TH ALIGN="right">PPPoE password</TD> <TD> <INPUT TYPE = "text" NAME = "password" @@ -38,7 +38,7 @@ </TR> <TR> - <TD ALIGN="right">ISP Changing?</TD> + <TH ALIGN="right">ISP Changing?</TD> <TD> <INPUT TYPE = "checkbox" NAME = "isp_chg" @@ -49,7 +49,7 @@ </TR> <TR> - <TD ALIGN="right">Current or Previous ISP</TD> + <TH ALIGN="right">Current or Previous ISP</TD> <TD> <INPUT TYPE = "text" NAME = "isp_prev" @@ -60,7 +60,7 @@ <INPUT TYPE="hidden" NAME="vendor_qual_id" VALUE="<% $opt{'vendor_qual_id'} %>"> <TR> - <TD ALIGN="right">Vendor Qualification ID</TD> + <TH ALIGN="right">Vendor Qualification ID</TD> <TD BGCOLOR="#eeeeee"><% $opt{'vendor_qual_id'} %></TD> </TR> diff --git a/httemplate/edit/cust_main/first_pkg/svc_phone.html b/httemplate/edit/cust_main/first_pkg/svc_phone.html index 70e013ece..65c677847 100644 --- a/httemplate/edit/cust_main/first_pkg/svc_phone.html +++ b/httemplate/edit/cust_main/first_pkg/svc_phone.html @@ -1,8 +1,8 @@ -<% ntable("#cccccc") %> +<TABLE CLASS="fsinnerbox"> %#XXX this should be hidden or something in most/all cases <TR> - <TD ALIGN="right" ID="countrycode_label_td">Country code</TD> + <TH ALIGN="right" ID="countrycode_label_td">Country code</TD> <TD ID="countrycode_td"> <INPUT TYPE = "text" NAME = "countrycode" @@ -21,7 +21,7 @@ %# ) %#%> <TR> - <TD ALIGN="right" ID="phonenum_label_td">Phone Number</TD> + <TH ALIGN="right" ID="phonenum_label_td">Phone Number</TD> <TD ID="phonenum_td"> <INPUT TYPE = "text" NAME = "phonenum" @@ -34,7 +34,7 @@ </TR> <TR> - <TD ALIGN="right" ID="sip_password_label_td">SIP password</TD> + <TH ALIGN="right" ID="sip_password_label_td">SIP password</TD> <TD ID="sip_password_td"> <INPUT TYPE = "text" NAME = "sip_password" @@ -46,7 +46,7 @@ </TR> <TR> - <TD ALIGN="right" ID="pin_label_td">Voicemail PIN</TD> + <TH ALIGN="right" ID="pin_label_td">Voicemail PIN</TD> <TD ID="pin_td"> <INPUT TYPE = "text" NAME = "pin" @@ -60,7 +60,7 @@ %#XXX this should be hidden or something in most/all cases <TR> - <TD ALIGN="right" ID="phone_name_label_td">Name</TD> + <TH ALIGN="right" ID="phone_name_label_td">Name</TD> <TD ID="phone_name_td"> <INPUT TYPE = "text" NAME = "phone_name" |