summaryrefslogtreecommitdiff
path: root/fs_selfservice/FS-SelfService/cgi
diff options
context:
space:
mode:
authorIvan Kohler <ivan@freeside.biz>2019-07-26 11:14:05 -0700
committerIvan Kohler <ivan@freeside.biz>2019-07-26 11:14:05 -0700
commit07ed221540128b8c75f4cb5a2af1e01b25fa8e18 (patch)
treeaeec9af09cc1b47752bdf4bc636ff1b64f41310c /fs_selfservice/FS-SelfService/cgi
parent14f234a943f1e4b5bbc6fe90254b8f5ca677f028 (diff)
parent2009d9cee8038aeff5b4313113fc23f546455cf5 (diff)
Merge branch 'master' of git.freeside.biz:/home/git/freeside
Diffstat (limited to 'fs_selfservice/FS-SelfService/cgi')
-rw-r--r--fs_selfservice/FS-SelfService/cgi/contact.html11
1 files changed, 5 insertions, 6 deletions
diff --git a/fs_selfservice/FS-SelfService/cgi/contact.html b/fs_selfservice/FS-SelfService/cgi/contact.html
index 7ae0d4880..798af7090 100644
--- a/fs_selfservice/FS-SelfService/cgi/contact.html
+++ b/fs_selfservice/FS-SelfService/cgi/contact.html
@@ -42,14 +42,11 @@
</TR>
<TR>
- <TH ALIGN="right"><%=$r%>City</TH>
- <TD>
- <INPUT TYPE="text" ID="<%=$pre%>city" NAME="<%=$pre%>city" VALUE="<%= encode_entities(${$pre.'city'}) %>" onChange="<%= $onchange %>" <%=$disabled%>>
- </TD>
<%=
- ($county_html, $state_html, $country_html) =
+ ($county_html, $state_html, $country_html, $city_html) =
FS::SelfService::regionselector( {
prefix => $pre,
+ selected_city => ${$pre.'city'},
selected_county => ${$pre.'county'},
selected_state => ${$pre.'state'},
selected_country => ${$pre.'country'},
@@ -58,6 +55,8 @@
locales => \@cust_main_county,
} );
+ $OUT .= qq!<TH ALIGN="right">${r}City</TH>!;
+ $OUT .= qq!<TD>$city_html</TD>!;
$OUT .= qq!<TH ALIGN="right">${r}State/County</TH>!;
$OUT .= qq!<TD>$county_html $state_html</TD>!;
$OUT .= qq!<TH>${r}Zip</TH>!;
@@ -73,7 +72,7 @@
<%=
if ( $disabled ) {
$OUT .= qq!var what = document.getElementById("${pre}city");!;
- for (qw( county state country ) ) {
+ for (qw( city county state country ) ) {
$OUT .= "what.form.$pre$_.disabled = true;";
$OUT .= "what.form.$pre$_.style.backgroundColor = '#dddddd';";
}