X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Felements%2Ftr-select-discount.html;h=faa65e1f763be103aa43fb9a93df43453ad52ea4;hb=e2d16c850d8857567023f10b8c57daf0570c6a8e;hp=ee862519f7705b7505c8b988c51d0e3723fe8b77;hpb=f8c4741390077c1448d627949d19c9220cc8e610;p=freeside.git
diff --git a/httemplate/elements/tr-select-discount.html b/httemplate/elements/tr-select-discount.html
index ee862519f..faa65e1f7 100644
--- a/httemplate/elements/tr-select-discount.html
+++ b/httemplate/elements/tr-select-discount.html
@@ -53,6 +53,13 @@
)
%>
+% if ( $opt{'setup_only'} ) {
+ <& /elements/hidden.html,
+ 'field' => $name.'_setup',
+ 'id' => $name.'_setup',
+ 'value' => 'Y'
+ &>
+% } else { # normal case, allow the user to choose
<% include( '/elements/tr-input-text.html',
'label' => 'Discount duration (months)',
'field' => $name. '_months',
@@ -73,6 +80,7 @@
'colspan' => $opt{'colspan'},
)
%>
+% }
%# <% include( '/elements/tr-checkbox.html',
%# 'label' => 'Apply discount to add-on packages',