X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Felements%2Fcity.html;h=6a2142f29f1426df1768b83fb34f147eb740d1ca;hb=ce89af6a65868fd0f5cde05ef866611aacad39aa;hp=956d353bd5a6b237434afc9a701f227be6f3af19;hpb=0fb307c305e4bc2c9c27dc25a3308beae3a4d33c;p=freeside.git diff --git a/httemplate/elements/city.html b/httemplate/elements/city.html index 956d353bd..6a2142f29 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 ) { +%# avoid JS errors + +% } +% else { +