diff options
author | Ivan Kohler <ivan@freeside.biz> | 2016-11-11 15:02:24 -0800 |
---|---|---|
committer | Ivan Kohler <ivan@freeside.biz> | 2016-11-11 15:02:24 -0800 |
commit | 081638aa4a483577a9c5bc7ac9ea518370cf2381 (patch) | |
tree | 510bd6cd7defd42043193a2bdf80df3d3dd224d9 /httemplate/edit/quick-charge.html | |
parent | 2756019bdb10fe144debfc8d6436468a89954eb3 (diff) |
UX: one-time charge - clarify quotation vs. real charge, acknowledge addition instead of silently redirecting
Diffstat (limited to 'httemplate/edit/quick-charge.html')
-rw-r--r-- | httemplate/edit/quick-charge.html | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/httemplate/edit/quick-charge.html b/httemplate/edit/quick-charge.html index 896e8b2d2..af6fd417d 100644 --- a/httemplate/edit/quick-charge.html +++ b/httemplate/edit/quick-charge.html @@ -1,12 +1,15 @@ -% if ( $quotationnum ) { -<& /elements/header.html, mt('One-time charge') &> +% if ( $quotationnum && ! $cust_main ) { +<& /elements/header.html, mt('Quotation #[_1]: add one-time charge', $quotationnum) &> % } else { <& /elements/header-cust_main.html, - view => 'packages', + view => $quotationnum ? 'quotations' : 'packages', cust_main => $cust_main, etc => $cgi->param('error') ? '' : 'onload="addRow()"', &> -<h2>One-time charge</h2> +<h2><% $quotationnum + ? emt('Quotation #[_1]: add one-time charge', $quotationnum) + : mt('One-time charge') + %></h2> % } <& /elements/init_calendar.html &> |