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