From 2a863bbb144830dfb8fca4afb3af76a84a647c76 Mon Sep 17 00:00:00 2001 From: jeff Date: Fri, 12 Jan 2007 02:04:50 +0000 Subject: one-time charge enhancements --- httemplate/edit/quick-charge.html | 163 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 163 insertions(+) create mode 100644 httemplate/edit/quick-charge.html (limited to 'httemplate/edit/quick-charge.html') diff --git a/httemplate/edit/quick-charge.html b/httemplate/edit/quick-charge.html new file mode 100644 index 000000000..b30285c21 --- /dev/null +++ b/httemplate/edit/quick-charge.html @@ -0,0 +1,163 @@ +<% include("/elements/header-popup.html", 'One-time charge entry', '', + ( $cgi->param('error') ? '' : 'onload="addRow()"' ), + ) +%> +% if ( $cgi->param('error') ) { + + <% $cgi->param('error') %>

+% } + + + + + +
+ + + + + + + + + + + + +% my $row = 0; +% if ( $cgi->param('error') ) { +% my $param = $cgi->Vars; +% +% for ( $row = 0; exists($param->{"description$row"}); $row++ ) { + + + + + +% } +% } + + +
Amount: + $ + + <% include('/elements/select-taxclass.html') %> +
Description: + +
+ " rownum="<% $row %>" onkeyup = "possiblyAddRow;" > +
+ +
+ + +
+ + + + + + -- cgit v1.2.1 From 89cb729e71c400307f47eef8e9e0b295db2dfca0 Mon Sep 17 00:00:00 2001 From: ivan Date: Wed, 31 Jan 2007 04:26:44 +0000 Subject: minor UI work on one-time charges w/taxclasses --- httemplate/edit/quick-charge.html | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) (limited to 'httemplate/edit/quick-charge.html') diff --git a/httemplate/edit/quick-charge.html b/httemplate/edit/quick-charge.html index b30285c21..94682d0a6 100644 --- a/httemplate/edit/quick-charge.html +++ b/httemplate/edit/quick-charge.html @@ -19,7 +19,7 @@ function enable_quick_charge () { } 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_desc () { } 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 @@ function validate_quick_charge () {
- +
- + - +<% include('/elements/tr-select-taxclass.html') %> + + + + + % my $row = 0; % if ( $cgi->param('error') ) { % my $param = $cgi->Vars; @@ -113,7 +116,7 @@ function validate_quick_charge () {
Amount:Amount: - $ - - <% include('/elements/select-taxclass.html') %> + $
Description:
Optional additional description:

- +param('error') ? '' :' DISABLED' %>>
-- cgit v1.2.1