From 76468652226308282a4161c5d4cf2a4f885b7175 Mon Sep 17 00:00:00 2001 From: Ivan Kohler Date: Sun, 12 Jul 2015 03:48:33 -0700 Subject: [PATCH] fix jitter and spacing errors in new customer menu under IE8, cleaner CSS --- httemplate/elements/one_time_charge_link.html | 23 +++++--- httemplate/view/cust_main/menu.html | 75 ++++++++++++++++----------- 2 files changed, 61 insertions(+), 37 deletions(-) diff --git a/httemplate/elements/one_time_charge_link.html b/httemplate/elements/one_time_charge_link.html index 4ef5ede4d..3a0f9b1a0 100644 --- a/httemplate/elements/one_time_charge_link.html +++ b/httemplate/elements/one_time_charge_link.html @@ -4,13 +4,18 @@ Example: <& /elements/one_time_charge_link.html, - #one of these is required + #one of these is required (except when form_only is true) 'custnum' => $custnum, 'prospectnum' => $prospectnum, + 'no_form' => 0, + 'form_only' => 0, &> +% +% unless ( $opt{form_only} ) { +% - +% } +% +% unless ( $opt{no_form} ) {
% for (qw( % taxproductnum tax_override charge_storage taxproductnum_description @@ -92,17 +99,19 @@ function taxoverridequickchargemagic() { % }
- -<% include('/elements/popup_link.html', { +% } +% +% unless ( $opt{form_only} ) { +<& /elements/popup_link.html, 'action' => $p. 'edit/quick-charge.html?'. $query, 'label' => emt('One-time charge'), 'actionlabel' => emt('One-time charge'), 'color' => '#333399', 'width' => 763, 'height' => 460, #more for more room for lines of add'l description? - }) -%> - +&> +% } +% <%init> my %opt = @_; diff --git a/httemplate/view/cust_main/menu.html b/httemplate/view/cust_main/menu.html index e641d3a84..c2547dd5e 100644 --- a/httemplate/view/cust_main/menu.html +++ b/httemplate/view/cust_main/menu.html @@ -1,36 +1,32 @@ +<& /elements/one_time_charge_link.html, form_only=>1 &> +