summaryrefslogtreecommitdiff
path: root/httemplate/elements/location.html
diff options
context:
space:
mode:
authorAlex Brelsfoard <alex@freeside.biz>2015-02-10 00:10:00 -0500
committerAlex Brelsfoard <alex@freeside.biz>2015-02-10 00:10:00 -0500
commitd422d2530bda9de3af830f1e1ab1084061b486f5 (patch)
treed7b00517e047823acdbe4111cf2afe18f18e690c /httemplate/elements/location.html
parent64514e0541c94b23a096acb265cb47e9ca6e6f85 (diff)
RT #29285 adding new config to disable city requirement
Diffstat (limited to 'httemplate/elements/location.html')
-rw-r--r--httemplate/elements/location.html5
1 files changed, 5 insertions, 0 deletions
diff --git a/httemplate/elements/location.html b/httemplate/elements/location.html
index 214a7d5f2..357a91db7 100644
--- a/httemplate/elements/location.html
+++ b/httemplate/elements/location.html
@@ -169,10 +169,15 @@ Example:
<TR>
+% if ($conf->exists('city_not_required')) {
+<input type="hidden" name="<% ($select_hash{'prefix'}) ? $select_hash{'prefix'} : '' %>city" value=" "/>
+%} else {
<<%$th%> ALIGN="right"><%$r%><% mt('City') |h %></<%$th%>>
<TD WIDTH="1"><% include('/elements/city.html', %select_hash, 'text_style' => \@style ) %></TD>
+
<<%$th%> ALIGN="right" WIDTH="1" ID="<%$pre%>countylabel" <%$county_style%>><%$r%>County</<%$th%>>
<TD WIDTH="1"><% include('/elements/select-county.html', %select_hash ) %></TD>
+% }
<<%$th%> ALIGN="right" WIDTH="1"><%$r%><% mt('State') |h %></<%$th%>>
<TD WIDTH="1">
<% include('/elements/select-state.html', %select_hash ) %>