From 663b89d06a2c97fb0e7915ba409310fbefefea98 Mon Sep 17 00:00:00 2001 From: levinse Date: Mon, 6 Dec 2010 06:36:02 +0000 Subject: -tr-select-cust_location.html and elements/location.html: optionally support alternate address format and optional address -nearly finished qualifications, RT7111 --- httemplate/elements/location.html | 66 ++++++++++++++++++++++++++++++++------- 1 file changed, 54 insertions(+), 12 deletions(-) (limited to 'httemplate/elements/location.html') diff --git a/httemplate/elements/location.html b/httemplate/elements/location.html index 0d2fa38c3..b5f76409b 100644 --- a/httemplate/elements/location.html +++ b/httemplate/elements/location.html @@ -31,21 +31,60 @@ Example: > + + >* >Unit # + + + <% $style %> + > + + + +% if ( $opt{'alt_format'} ) { - >* >Unit # - - - <% $style %> - > - + <<%$th%> ALIGN="right">Location Type> + + <% $style %> + > + + + <<%$th%> ALIGN="right">Number> + + <% $style %> + > + + <<%$th%> ALIGN="right">Kind> + + <% include('/elements/select.html', + 'cgi' => $cgi, + 'field' => 'location_kind', + 'disabled' => $disabled, + 'style' => $style, + 'options' => \@location_kind_options, + 'labels' => $location_kind_labels, + 'curr_value' => $cgi->param('location_kind'), + ) + %> + +% } <<%$th%> ALIGN="right"><%$r%>City> @@ -155,4 +194,7 @@ my %select_hash = ( my $th = $opt{'no_bold'} ? 'TD' : 'TH'; +my @location_kind_options = ( '', 'R', 'B' ); +my $location_kind_labels = { '' => '', 'R' => 'Residential', 'B' => 'Business' }; + -- cgit v1.2.1