projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
address standardization UI, part 1
[freeside.git]
/
httemplate
/
edit
/
cust_main.cgi
diff --git
a/httemplate/edit/cust_main.cgi
b/httemplate/edit/cust_main.cgi
index
effe84b
..
2593201
100755
(executable)
--- a/
httemplate/edit/cust_main.cgi
+++ b/
httemplate/edit/cust_main.cgi
@@
-43,6
+43,7
@@
<TD>
%#; padding-right:2px; vertical-align:top">
<FONT CLASS="fsinnerbox-title"><% mt('Billing address') |h %></FONT>
<TD>
%#; padding-right:2px; vertical-align:top">
<FONT CLASS="fsinnerbox-title"><% mt('Billing address') |h %></FONT>
+ <FIELDSET ID="bill_location" CLASS="location">
<TABLE CLASS="fsinnerbox" WIDTH="100%">
<& cust_main/before_bill_location.html, $cust_main &>
<& /elements/location.html,
<TABLE CLASS="fsinnerbox" WIDTH="100%">
<& cust_main/before_bill_location.html, $cust_main &>
<& /elements/location.html,
@@
-54,6
+55,7
@@
&>
<& cust_main/after_bill_location.html, $cust_main &>
</TABLE>
&>
<& cust_main/after_bill_location.html, $cust_main &>
</TABLE>
+ </FIELDSET>
</TD>
</TR>
<TR><TD STYLE="height:14px"></TD></TR>
</TD>
</TR>
<TR><TD STYLE="height:14px"></TD></TR>
@@
-68,7
+70,7
@@
VALUE="Y"
<% $has_ship_address ? '' : 'CHECKED' %>
><% mt('same as billing address') |h %>
VALUE="Y"
<% $has_ship_address ? '' : 'CHECKED' %>
><% mt('same as billing address') |h %>
- <
DIV ID="div_ship_
location">
+ <
FIELDSET ID="ship_location" CLASS="
location">
<TABLE WIDTH="100%" CLASS="fsinnerbox">
<& cust_main/before_ship_location.html, $cust_main &>
<& /elements/location.html,
<TABLE WIDTH="100%" CLASS="fsinnerbox">
<& cust_main/before_ship_location.html, $cust_main &>
<& /elements/location.html,
@@
-91,7
+93,7
@@
</TR>
% }
</TABLE>
</TR>
% }
</TABLE>
- </
DIV
>
+ </
FIELDSET
>
</TD>
</TR></TABLE>
</TD>
</TR></TABLE>
@@
-99,16
+101,20
@@
function samechanged(what) {
if ( what.checked ) {
function samechanged(what) {
if ( what.checked ) {
- $('#
div_
ship_location').slideUp();
+ $('#ship_location').slideUp();
} else {
} else {
- $('#
div_
ship_location').slideDown();
+ $('#ship_location').slideDown();
}
}
% if ( ! $has_ship_address ) {
}
}
% if ( ! $has_ship_address ) {
- $('#
div_
ship_location').hide();
+ $('#ship_location').hide();
% }
% }
+$().ready( function() {
+ window.bill_location = new Location($('fieldset#bill_location'));
+});
+
</SCRIPT>
<& cust_main/contacts_new.html, 'cust_main'=>$cust_main, &>
</SCRIPT>
<& cust_main/contacts_new.html, 'cust_main'=>$cust_main, &>