X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;ds=sidebyside;f=httemplate%2Fedit%2Fquick-charge.html;h=27841063fa9459da31504739c1d11a85827501f6;hb=0e845fa6f04733d82ea8ca092c7778aef773ab5d;hp=5d4bc2e1c50e07396e43b937d41d4cdf5b05782a;hpb=1c051f73e8abf23206d0373e7c83279b37bed708;p=freeside.git
diff --git a/httemplate/edit/quick-charge.html b/httemplate/edit/quick-charge.html
index 5d4bc2e1c..27841063f 100644
--- a/httemplate/edit/quick-charge.html
+++ b/httemplate/edit/quick-charge.html
@@ -1,11 +1,13 @@
-<% include("/elements/header-popup.html", 'One-time charge entry', '',
+<& /elements/header-popup.html, mt('One-time charge'), '',
( $cgi->param('error') ? '' : 'onload="addRow()"' ),
- )
-%>
-% if ( $cgi->param('error') ) {
+&>
- <% $cgi->param('error') %>
-% }
+
+
+
+
+
+<& /elements/error.html &>
+function bill_now_changed (what) {
+ var form = what.form;
+ if ( what.checked ) {
+ form.start_date_text.disabled = true;
+ form.start_date.style.backgroundColor = '#dddddd';
+ form.start_date_button.style.display = 'none';
+ form.start_date_button_disabled.style.display = '';
+ form.invoice_terms.disabled = false;
+ } else {
+ form.start_date_text.disabled = false;
+ form.start_date.style.backgroundColor = '#ffffff';
+ form.start_date_button.style.display = '';
+ form.start_date_button_disabled.style.display = 'none';
+ form.invoice_terms.disabled = true;
+ }
+}
+
+