diff options
Diffstat (limited to 'httemplate/elements/tr-censustract.html')
| -rw-r--r-- | httemplate/elements/tr-censustract.html | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/httemplate/elements/tr-censustract.html b/httemplate/elements/tr-censustract.html new file mode 100644 index 000000000..bd014f11b --- /dev/null +++ b/httemplate/elements/tr-censustract.html @@ -0,0 +1,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> + <% $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> |
