From 1fc6e684436955f6980dd8d9129f6a95d5af595e Mon Sep 17 00:00:00 2001 From: Mark Wells Date: Mon, 5 Mar 2012 12:33:32 -0800 Subject: [PATCH] stop tax district lookup from enabling city dropdown, #16757 --- httemplate/elements/city.html | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/httemplate/elements/city.html b/httemplate/elements/city.html index 29495df43..f6d2b4bad 100644 --- a/httemplate/elements/city.html +++ b/httemplate/elements/city.html @@ -15,11 +15,20 @@ Example: disabled => 0, #bool # disable_empty => 1, #defaults to 1, disable the empty option # empty_label => 'all', #label for empty option +# disable_select => 1, # disable the selector (just show a text input) style => [ 'attribute:value', 'another:value' ], ); +% if ( $disable_select ) { + +% } +% else { + + <% include('/elements/xmlhttp.html', 'url' => $p.'misc/cities.cgi', 'subs' => [ $pre. 'get_cities' ], @@ -87,6 +96,8 @@ Example: +% } #!disable_select + > +% if ( !$disable_select ) { +