diff options
author | ivan <ivan> | 2011-09-27 23:01:24 +0000 |
---|---|---|
committer | ivan <ivan> | 2011-09-27 23:01:24 +0000 |
commit | 70bffe41ccf43a9d25c2b54679f1e9310f50c1c4 (patch) | |
tree | e6463405b3fc3c0ccab69bab11766b67551df277 /httemplate | |
parent | 95bb9cf9a687ee98c985bd399addc6bdc8cc6b94 (diff) |
add cust_main.mobile and ship_mobile to support uniserve portal, RT#13656
Diffstat (limited to 'httemplate')
-rwxr-xr-x | httemplate/edit/cust_main.cgi | 6 | ||||
-rw-r--r-- | httemplate/edit/cust_main/contact.html | 28 | ||||
-rw-r--r-- | httemplate/view/cust_main/contacts.html | 15 |
3 files changed, 40 insertions, 9 deletions
diff --git a/httemplate/edit/cust_main.cgi b/httemplate/edit/cust_main.cgi index 2ba40d23a..38b351381 100755 --- a/httemplate/edit/cust_main.cgi +++ b/httemplate/edit/cust_main.cgi @@ -51,7 +51,7 @@ % push @ship_style, 'background-color:#dddddd'; % foreach ( % qw( last first company address1 address2 city county state zip country -% daytime night fax ) +% daytime night fax mobile ) % ) { % $cust_main->set("ship_$_", $cust_main->get($_) ); % } @@ -73,7 +73,7 @@ <SCRIPT> function bill_changed(what) { if ( what.form.same.checked ) { -% for (qw( last first company address1 address2 city zip daytime night fax )) { +% for (qw( last first company address1 address2 city zip daytime night fax mobile )) { what.form.ship_<%$_%>.value = what.form.<%$_%>.value; % } @@ -103,7 +103,7 @@ function samechanged(what) { if ( what.checked ) { bill_changed(what); -% my @fields = qw( last first company address1 address2 city city_select county state zip country daytime night fax ); +% my @fields = qw( last first company address1 address2 city city_select county state zip country daytime night fax mobile ); % for (@fields) { what.form.ship_<%$_%>.disabled = true; what.form.ship_<%$_%>.style.backgroundColor = '#dddddd'; diff --git a/httemplate/edit/cust_main/contact.html b/httemplate/edit/cust_main/contact.html index 3dd24aae5..51c0960ca 100644 --- a/httemplate/edit/cust_main/contact.html +++ b/httemplate/edit/cust_main/contact.html @@ -63,6 +63,13 @@ </TR> <TR> + <TD ALIGN="right"><% $mobile_label %></TD> + <TD COLSPAN=5> + <INPUT TYPE="text" NAME="<%$pre%>mobile" VALUE="<% $cust_main->get($pre.'mobile') %>" SIZE=18 onChange="<% $onchange %>" <%$disabled%> <%$style%>> + </TD> +</TR> + +<TR> <TD ALIGN="right"><% mt('Fax') |h %></TD> <TD COLSPAN=5> <INPUT TYPE="text" NAME="<%$pre%>fax" VALUE="<% $cust_main->get($pre.'fax') %>" SIZE=12 onChange="<% $onchange %>" <%$disabled%> <%$style%>> @@ -85,6 +92,13 @@ </TD> </TR> +<TR> + <TD ALIGN="right"><% $mobile_label %></TD> + <TD COLSPAN=5> + <INPUT TYPE="text" NAME="<%$pre%>mobile" VALUE="<% $cust_main->get($pre.'mobile') %>" SIZE=18 onChange="<% $onchange %>" <%$disabled%> <%$style%>> + </TD> +</TR> + <& /elements/location.html, 'prefix' => $pre, 'object' => $cust_main, @@ -175,11 +189,15 @@ if ( $conf->exists('cust_main-require_censustract') ) { } my $daytime_label = FS::Msgcat::_gettext('daytime') =~ /^(daytime)?$/ - ? 'Day Phone' - : FS::Msgcat::_gettext('daytime'); -my $night_label = FS::Msgcat::_gettext('night') =~/^(night)?$/ - ? 'Night Phone' - : FS::Msgcat::_gettext('night') || 'Night Phone'; + ? 'Day Phone' + : FS::Msgcat::_gettext('daytime'); +my $night_label = FS::Msgcat::_gettext('night') =~/^(night)?$/ + ? 'Night Phone' + : FS::Msgcat::_gettext('night') || 'Night Phone'; +my $mobile_label = FS::Msgcat::_gettext('mobile') =~/^(mobile)?$/ + ? 'Mobile Phone' + : FS::Msgcat::_gettext('mobile') || 'Mobile Phone'; + my $stateid_label = FS::Msgcat::_gettext('stateid') =~ /^(stateid)?$/ ? 'Driver’s License' : FS::Msgcat::_gettext('stateid') || 'Driver’s License'; diff --git a/httemplate/view/cust_main/contacts.html b/httemplate/view/cust_main/contacts.html index 56fbac8c6..14cd91843 100644 --- a/httemplate/view/cust_main/contacts.html +++ b/httemplate/view/cust_main/contacts.html @@ -84,6 +84,15 @@ </TD> </TR> <TR> + <TD ALIGN="right"><% $mobile_label %></TD> + <TD COLSPAN=3 BGCOLOR="#ffffff"> + <& /elements/phonenumber.html, + $cust_main->get("${pre}mobile"), + 'callable'=>1 + &> + </TD> +</TR> +<TR> <TD ALIGN="right"><% mt('Fax') |h %></TD> <TD COLSPAN=3 BGCOLOR="#ffffff"> <% $cust_main->get("${pre}fax") || ' ' %> @@ -108,9 +117,13 @@ my $daytime_label = FS::Msgcat::_gettext('daytime') =~ /^(daytime)?$/ ? 'Day Phone' : FS::Msgcat::_gettext('daytime'); -my $night_label = FS::Msgcat::_gettext('night') =~ /^(night)?$/ +my $night_label = FS::Msgcat::_gettext('night') =~ /^(night)?$/ ? 'Night Phone' : FS::Msgcat::_gettext('night'); +my $mobile_label = FS::Msgcat::_gettext('mobile') =~ /^(mobile)?$/ + ? 'Mobile Phone' + : FS::Msgcat::_gettext('Mobile'); + my $stateid_label = FS::Msgcat::_gettext('stateid') =~ /^(stateid)?$/ ? 'Driver’s License' : FS::Msgcat::_gettext('stateid'); |