[freeside-commits] freeside/httemplate/edit quick-charge.html, 1.1,
1.2
Ivan,,,
ivan at wavetail.420.am
Tue Jan 30 20:26:46 PST 2007
Update of /home/cvs/cvsroot/freeside/httemplate/edit
In directory wavetail:/tmp/cvs-serv26186/httemplate/edit
Modified Files:
quick-charge.html
Log Message:
minor UI work on one-time charges w/taxclasses
Index: quick-charge.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/edit/quick-charge.html,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- quick-charge.html 12 Jan 2007 02:04:49 -0000 1.1
+++ quick-charge.html 31 Jan 2007 04:26:44 -0000 1.2
@@ -19,7 +19,7 @@
}
function enable_quick_charge_desc () {
- if ( document.QuickChargeForm.amount.value ) {
+ if ( document.QuickChargeForm.amount.value && document.QuickChargeForm.pkg.value ) {
document.QuickChargeForm.submit.disabled = false;
} else {
document.QuickChargeForm.submit.disabled = true;
@@ -27,7 +27,7 @@
}
function enable_quick_charge_amount () {
- if ( document.QuickChargeForm.pkg.value ) {
+ if ( document.QuickChargeForm.amount.value && document.QuickChargeForm.pkg.value ) {
document.QuickChargeForm.submit.disabled = false;
} else {
document.QuickChargeForm.submit.disabled = true;
@@ -78,22 +78,25 @@
<FORM ACTION="process/quick-charge.cgi" NAME="QuickChargeForm" METHOD="POST" onsubmit="document.QuickChargeForm.submit.disabled=true;return validate_quick_charge();">
<INPUT TYPE="hidden" NAME="custnum" VALUE="<% $cgi->param('custnum') %>">
-<TABLE ID="QuickChargeTable" BGCOLOR="#cccccc" BORDER=0 CELLSPACING=0>
+<TABLE ID="QuickChargeTable" BGCOLOR="#cccccc" BORDER=0 CELLSPACING=0 STYLE="background-color: #cccccc">
<TR>
- <TD>Amount:</TD>
- <TD>
- $<INPUT TYPE="text" NAME="amount" SIZE=6 VALUE="<% $cgi->param('amount') %>" onChange="enable_quick_charge()" on KeyPress="enable_quick_charge_amount()">
- </TD>
+ <TD ALIGN="right">Amount:</TD>
<TD>
- <% include('/elements/select-taxclass.html') %>
+ $<INPUT TYPE="text" NAME="amount" SIZE=6 VALUE="<% $cgi->param('amount') %>" onChange="enable_quick_charge()" onKeyPress="enable_quick_charge_amount()">
</TD>
+<% include('/elements/tr-select-taxclass.html') %>
</TR>
<TD>Description:</TD>
<TD>
<INPUT TYPE="text" NAME="pkg" SIZE="60" MAXLENGTH="65" VALUE="<% $cgi->param('pkg') %>" onChange="enable_quick_charge()" onKeyPress="enable_quick_charge_desc()">
</TD>
</TR>
+<TR>
+ <TD></TD>
+ <TD><FONT SIZE="-1">Optional additional description: </FONT></TD>
+</TR>
+
% my $row = 0;
% if ( $cgi->param('error') ) {
% my $param = $cgi->Vars;
@@ -113,7 +116,7 @@
</TABLE>
<BR>
-<INPUT TYPE="submit" NAME="submit" VALUE="Add one-time charge" DISABLED>
+<INPUT TYPE="submit" NAME="submit" VALUE="Add one-time charge" <% $cgi->param('error') ? '' :' DISABLED' %>>
</FORM>
More information about the freeside-commits
mailing list