X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Felements%2Flocation.html;h=b5f76409bbfdeaffe5af126322f5d2f7b2b2fadb;hb=0d75dc389fccdb680237aa1e244e13d254d12f02;hp=07aaa69f0193e9a5ff791b13cdf532cb83c836bd;hpb=f3717767d19f9da888e190f87a04dfa245d658b4;p=freeside.git
diff --git a/httemplate/elements/location.html b/httemplate/elements/location.html
index 07aaa69f0..b5f76409b 100644
--- a/httemplate/elements/location.html
+++ b/httemplate/elements/location.html
@@ -18,7 +18,7 @@ Example:
%doc>
- <%$r%><% $opt{'address1_label'} || 'Address' %> |
+ <<%$th%> ALIGN="right"><%$r%><% $opt{'address1_label'} || 'Address' %><%$th%>>
|
+
+ >* >Unit # |
+
+
+ <% $style %>
+ >
+ |
+
+
+% if ( $opt{'alt_format'} ) {
- >* >Unit # |
-
-
- <% $style %>
- >
- |
+ <<%$th%> ALIGN="right">Location Type<%$th%>>
+
+ <% $style %>
+ >
+ |
+ |
+ <<%$th%> ALIGN="right">Number<%$th%>>
+
+ <% $style %>
+ >
+ |
+ <<%$th%> ALIGN="right">Kind<%$th%>>
+
+ <% 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'),
+ )
+ %>
+ |
+% }
- <%$r%>City |
-
-
- <% $style %>
- >
- |
- ><%$r%>County |
+ <<%$th%> ALIGN="right"><%$r%>City<%$th%>>
+ <% include('/elements/city.html', %select_hash) %> |
+ <<%$th%> ALIGN="right" ID="<%$pre%>countylabel" <%$county_style%>><%$r%>County<%$th%>>
<% include('/elements/select-county.html', %select_hash ) %> |
- <%$r%>State |
+ <<%$th%> ALIGN="right" WIDTH="1"><%$r%>State<%$th%>>
<% include('/elements/select-state.html', %select_hash ) %>
|
- <%$r%>Zip |
+ <<%$th%>><%$r%>Zip<%$th%>>
|
- <%$r%>Country |
+ <<%$th%> ALIGN="right"><%$r%>Country<%$th%>>
<% include('/elements/select-country.html', %select_hash ) %> |
@@ -88,7 +118,7 @@ Example:
% } else {
% if ( $pre eq 'ship_' && $conf->exists('cust_main-require_censustract') ) {
- Census tract (automatic) |
+
---|
<<%$th%> ALIGN="right">Census tract
(automatic)<%$th%>>
|
@@ -123,7 +153,7 @@ $object->set($pre.'state', $statedefault )
|| $object->get($pre.'country') ne $countrydefault;
my @style = ();
-push @style, 'background-color: #dddddd"' if $disabled;
+push @style, 'background-color: #dddddd' if $disabled;
my @address2_label_style = ();
push @address2_label_style, 'visibility:hidden'
@@ -152,6 +182,7 @@ my $county_style =
: '';
my %select_hash = (
+ 'city' => $object->get($pre.'city'),
'county' => $object->get($pre.'county'),
'state' => $object->get($pre.'state'),
'country' => $object->get($pre.'country'),
@@ -161,4 +192,9 @@ my %select_hash = (
'style' => \@style,
);
+my $th = $opt{'no_bold'} ? 'TD' : 'TH';
+
+my @location_kind_options = ( '', 'R', 'B' );
+my $location_kind_labels = { '' => '', 'R' => 'Residential', 'B' => 'Business' };
+
%init>