From 528e7e1cb1a6d05f87847bf9fd9b7e0e9fc33f6f Mon Sep 17 00:00:00 2001 From: ivan Date: Sun, 13 Mar 2011 18:56:03 +0000 Subject: qualification address handling changes, RT#7111 --- httemplate/elements/location.html | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) (limited to 'httemplate/elements/location.html') diff --git a/httemplate/elements/location.html b/httemplate/elements/location.html index 0b91add52..f36f2c4cd 100644 --- a/httemplate/elements/location.html +++ b/httemplate/elements/location.html @@ -20,7 +20,7 @@ Example: % if ( $opt{'alt_format'} ) { - <<%$th%> ALIGN="right">Location kind> + <<%$th%> ALIGN="right">Location kind> <% include('/elements/select.html', 'cgi' => $cgi, @@ -79,7 +79,7 @@ Example: > - <<%$th%> ALIGN="right">Unit type and #> + <<%$th%> ALIGN="right">Unit type and #> % my $location_type = scalar($cgi->param('location_type')) @@ -136,15 +136,9 @@ Example: <% $style %> > -% if ( $object->get($pre.'address2') ) { - -% #XXX try to parse first -% if ( 0 ) { -% } else { #XXX i don't work so well when the dropdown is changed :/ i probably need to be triggered by "default service address" - Can't parse unit type and number from <% $object->get($pre.'address2') |h %> -% } - -% } +% #XXX i don't work so well when the dropdown is changed :/ i probably need to be triggered by "default service address" +% $alt_err =~ s/(ship_)?address2/''.encode_entities($object->get($1.'address2')).'<\/B>'/e; + <% $alt_err %> @@ -219,6 +213,8 @@ $object->set($pre.'state', $statedefault ) unless $object->get($pre.'state') || $object->get($pre.'country') ne $countrydefault; +my $alt_err = ($opt{'alt_format'} && !$disabled) ? $object->alternize : ''; + my @style = (); push @style, 'background-color: #dddddd' if $disabled; -- cgit v1.2.1