From aa5ded92573a8f848d3652234bcfd4f8e4f0f06d Mon Sep 17 00:00:00 2001 From: levinse Date: Fri, 3 Jun 2011 04:36:48 +0000 Subject: [PATCH] configurable alternate field order for cust edit, RT13102 --- FS/FS/Conf.pm | 7 ++++++ httemplate/edit/cust_main/contact.html | 44 ++++++++++++++++++++++++++++++++++ 2 files changed, 51 insertions(+) diff --git a/FS/FS/Conf.pm b/FS/FS/Conf.pm index 66616a07e..186d82878 100644 --- a/FS/FS/Conf.pm +++ b/FS/FS/Conf.pm @@ -4451,6 +4451,13 @@ and customer address. Include units.', 'description' => 'Move the invoicing e-mail address field to the top of the billing address section and highlight it.', 'type' => 'checkbox', }, + + { + 'key' => 'cust-edit-alt-field-order', + 'section' => 'UI', + 'description' => 'An alternate ordering of fields for the New Customer and Edit Customer screens.', + 'type' => 'checkbox', + }, { key => "apacheroot", section => "deprecated", description => "DEPRECATED", type => "text" }, { key => "apachemachine", section => "deprecated", description => "DEPRECATED", type => "text" }, diff --git a/httemplate/edit/cust_main/contact.html b/httemplate/edit/cust_main/contact.html index a53c78905..3dd24aae5 100644 --- a/httemplate/edit/cust_main/contact.html +++ b/httemplate/edit/cust_main/contact.html @@ -29,6 +29,7 @@ % } +% unless ( $conf->exists('cust-edit-alt-field-order') ) { <% mt('Company') |h %> @@ -68,6 +69,49 @@ +% } else { + + + <% $daytime_label %> + + <%$style%>> + + + + + <% $night_label %> + + <%$style%>> + + + +<& /elements/location.html, + 'prefix' => $pre, + 'object' => $cust_main, + 'onchange' => $onchange, + 'disabled' => $disabled, + 'style' => \@style, + 'same_checked' => $opt{'same_checked'}, + 'geocode' => $opt{'geocode'}, + 'censustract' => $opt{'censustract'}, +&> + + + <% mt('Fax') |h %> + + <%$style%>> + + + + + <% mt('Company') |h %> + + <%$style%>> + + + +% } + % if ( $conf->exists('show_stateid') && !$pre ) { -- 2.11.0