summaryrefslogtreecommitdiff
path: root/httemplate/elements/tr-censustract.html
blob: bd014f11bfcbc3f9bf75e2aa324316f0498ac7da (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 ($censustract) {
<TR>
  <TD ALIGN="right"><% mt('Census tract') |h %></TD>
  <TD COLSPAN=5>
    <SPAN STYLE="background-color: #ffffff; border: 1px solid #ffffff"><% $censustract |h %></SPAN>
    &nbsp;<% $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>