summaryrefslogtreecommitdiff
path: root/httemplate/elements
diff options
context:
space:
mode:
Diffstat (limited to 'httemplate/elements')
-rw-r--r--httemplate/elements/tr-select-discount.html8
1 files changed, 8 insertions, 0 deletions
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' => '<B>Discount duration (months)</B>',
'field' => $name. '_months',
@@ -73,6 +80,7 @@
'colspan' => $opt{'colspan'},
)
%>
+% }
%# <% include( '/elements/tr-checkbox.html',
%# 'label' => '<B>Apply discount to add-on packages</B>',