blob: c7ca270e9d9b5d7fd5c92024534a1d03ecf84ff9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
% if ($location->country eq 'US' and $censustract) {
<TR>
<TH ALIGN="right"><% mt('Census tract') |h %></TH>
<TD COLSPAN=5>
<SPAN STYLE="background-color: #ffffff; border: 1px solid #ffffff"><% $censustract |h %></SPAN>
<% $censusyear |h %>
</TD>
</TR>
% }
<%init>
my $location = shift;
my $conf = FS::Conf->new;
my ($censustract, $censusyear);
if ($location->censustract) {
$censustract = $location->censustract;
$censusyear = '('. ($location->censusyear || mt('unknown year')) . ')';
} elsif ($conf->exists('cust_main-require_censustract')) {
$censustract = mt('unknown');
$censusyear = '';
}
</%init>
|