A couple of changes to address issues raised by Bug 1631: City, State label. Also streamlining changecity js (no need to have inline javascript generated by the Perl script).
Signed-off-by: Chris Cormack <crc@liblime.com> Signed-off-by: Joshua Ferraro <jmf@liblime.com>
This commit is contained in:
parent
3b4e2720dd
commit
39d01437cc
|
|
@ -14,14 +14,14 @@ patron <!-- TMPL_VAR NAME="surname" -->, <!-- TMPL_VAR name="firstname" --><!--
|
|||
$("#contactname").attr("value","");
|
||||
$("#contactfirstname").attr("value","");
|
||||
$("#guarantorsearch").attr("value","Find guarantor");
|
||||
});
|
||||
$("#select_city").change(function(){
|
||||
var myRegEx=new RegExp(/(.*)\|(.*)/);
|
||||
document.form.select_city.value.match(myRegEx);
|
||||
document.form.zipcode.value=RegExp.$1;
|
||||
document.form.city.value=RegExp.$2;
|
||||
});
|
||||
});
|
||||
function changecity() {
|
||||
var myRegEx=new RegExp(/(.*)\|(.*)/);
|
||||
document.form.select_city.value.match(myRegEx);
|
||||
document.form.zipcode.value=RegExp.$1;
|
||||
document.form.city.value=RegExp.$2;
|
||||
}
|
||||
//]]>
|
||||
</script>
|
||||
</head>
|
||||
|
|
@ -270,10 +270,10 @@ patron <!-- TMPL_VAR name="firstname" --> <!-- TMPL_VAR NAME="surname" -->
|
|||
<!--TMPL_ELSE-->
|
||||
<label for="city">
|
||||
<!-- /TMPL_IF-->
|
||||
City: </label>
|
||||
City, State: </label>
|
||||
|
||||
<input type="text" id="city" name="city" size="20" value="<!-- TMPL_VAR NAME="city" -->" />
|
||||
or choose <!-- TMPL_VAR NAME="citypopup" -->
|
||||
<!-- TMPL_IF NAME="city_cgipopup" -->or <strong>choose</strong> <!-- TMPL_VAR NAME="citypopup" --><!-- /TMPL_IF -->
|
||||
<!-- TMPL_IF NAME="mandatorycity" --><span class="required">Required</span><!-- /TMPL_IF -->
|
||||
</li>
|
||||
<li>
|
||||
|
|
@ -293,15 +293,6 @@ patron <!-- TMPL_VAR name="firstname" --> <!-- TMPL_VAR NAME="surname" -->
|
|||
<legend>Contact</legend><ol>
|
||||
<!--TMPL_IF Name="C"-->
|
||||
<h2>Patron</h2>
|
||||
<li>
|
||||
<!-- TMPL_IF NAME="mandatoryB_email" -->
|
||||
<label for="B_email" class="required">
|
||||
<!--TMPL_ELSE-->
|
||||
<label for="B_email">
|
||||
<!-- /TMPL_IF-->
|
||||
E-mail (home): </label>
|
||||
<input type="text" id="B_email" name="B_email" size="45" value="<!-- TMPL_VAR NAME="B_email" -->" />
|
||||
<!-- TMPL_IF NAME="mandatoryB_email" --><span class="required">Required</span><!-- /TMPL_IF --> </li>
|
||||
<!--/TMPL_IF-->
|
||||
<li>
|
||||
<!-- TMPL_IF NAME="mandatoryphone" -->
|
||||
|
|
@ -413,6 +404,15 @@ patron <!-- TMPL_VAR name="firstname" --> <!-- TMPL_VAR NAME="surname" -->
|
|||
<input type="text" id="B_phone" name="B_phone" value="<!-- TMPL_VAR NAME="B_phone" -->" />
|
||||
<!-- TMPL_IF NAME="mandatoryB_phone" --><span class="required">Required</span><!-- /TMPL_IF -->
|
||||
</li>
|
||||
<li>
|
||||
<!-- TMPL_IF NAME="mandatoryB_email" -->
|
||||
<label for="B_email" class="required">
|
||||
<!--TMPL_ELSE-->
|
||||
<label for="B_email">
|
||||
<!-- /TMPL_IF-->
|
||||
E-mail: </label>
|
||||
<input type="text" id="B_email" name="B_email" size="45" value="<!-- TMPL_VAR NAME="B_email" -->" />
|
||||
<!-- TMPL_IF NAME="mandatoryB_email" --><span class="required">Required</span><!-- /TMPL_IF --> </li>
|
||||
<li>
|
||||
<!-- TMPL_IF NAME="mandatorycontacnote" -->
|
||||
<label for="contacnote" class="required">
|
||||
|
|
|
|||
|
|
@ -325,7 +325,6 @@ my $citypopup = CGI::popup_menu(-name=>'select_city',
|
|||
-values=>$name_city,
|
||||
-labels=>$name_city,
|
||||
-default=>$default_city,
|
||||
-onChange => "javascript:changecity()",
|
||||
);
|
||||
|
||||
my $default_roadtype;
|
||||
|
|
|
|||
Loading…
Reference in New Issue