diff options
author | ivan <ivan> | 2011-03-13 18:56:03 +0000 |
---|---|---|
committer | ivan <ivan> | 2011-03-13 18:56:03 +0000 |
commit | 528e7e1cb1a6d05f87847bf9fd9b7e0e9fc33f6f (patch) | |
tree | 19e5e3331069417f221569dd4e6b9cd915e0500f /httemplate/elements/location.html | |
parent | d66bff648dd4d7969f50f956b5c1dd06b8159b8c (diff) |
qualification address handling changes, RT#7111
Diffstat (limited to 'httemplate/elements/location.html')
-rw-r--r-- | httemplate/elements/location.html | 18 |
1 files changed, 7 insertions, 11 deletions
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'} ) { <TR> - <<%$th%> ALIGN="right">Location kind</<%$th%>> + <<%$th%> ALIGN="right">Location kind</<%$th%>> <TD> <% include('/elements/select.html', 'cgi' => $cgi, @@ -79,7 +79,7 @@ Example: > <TR> - <<%$th%> ALIGN="right">Unit type and #</<%$th%>> + <<%$th%> ALIGN="right">Unit type and #</<%$th%>> <TD COLSPAN=7> % 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 <B><% $object->get($pre.'address2') |h %></B> -% } - -% } +% #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/'<B>'.encode_entities($object->get($1.'address2')).'<\/B>'/e; + <% $alt_err %> </TD> @@ -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; |