From 7acc76e0ead0d88cb225c88016c778c8feb9a075 Mon Sep 17 00:00:00 2001 From: Mark Wells Date: Sun, 26 Aug 2012 23:05:04 -0700 Subject: only show coordinate fields where necessary, #940 --- httemplate/elements/location.html | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'httemplate/elements/location.html') diff --git a/httemplate/elements/location.html b/httemplate/elements/location.html index 767231856..5c7c888de 100644 --- a/httemplate/elements/location.html +++ b/httemplate/elements/location.html @@ -11,8 +11,10 @@ Example: 'no_asterisks' => 0, #set true to disable the red asterisks next #to required fields 'address1_label' => 'Address', #label for address + 'enable_coords' => 1, #show latitude/longitude fields 'enable_district' => 1, #show tax district field 'enable_censustract' => 1, #show censustract field + ) @@ -175,6 +177,7 @@ Example: <% include('/elements/select-country.html', %select_hash ) %> +% if ( $opt{enable_coords} ) { <% mt('Latitude') |h %> @@ -195,6 +198,11 @@ Example: > +% } else { +% foreach (qw(latitude longitude)) { + +% } +% } -- cgit v1.2.1