summaryrefslogtreecommitdiff
path: root/httemplate/elements/select-cust_pkg-status.html
diff options
context:
space:
mode:
Diffstat (limited to 'httemplate/elements/select-cust_pkg-status.html')
-rw-r--r--httemplate/elements/select-cust_pkg-status.html17
1 files changed, 9 insertions, 8 deletions
diff --git a/httemplate/elements/select-cust_pkg-status.html b/httemplate/elements/select-cust_pkg-status.html
index 5da93fe79..58f270342 100644
--- a/httemplate/elements/select-cust_pkg-status.html
+++ b/httemplate/elements/select-cust_pkg-status.html
@@ -1,19 +1,20 @@
-<%
- my( $status, %opt ) = @_;
+%
+% my( $status, %opt ) = @_;
+%
+% $opt{'statuses'} ||= [ FS::cust_pkg->statuses() ]; # { disabled=>'' } )
+%
+%
- $opt{'statuses'} ||= [ FS::cust_pkg->statuses() ]; # { disabled=>'' } )
-
-%>
<SELECT NAME="status">
<OPTION VALUE="">all
+% foreach my $status ( @{ $opt{'statuses'} } ) {
- <% foreach my $status ( @{ $opt{'statuses'} } ) { %>
- <OPTION VALUE="<%= $status %>"><%= $status %>
+ <OPTION VALUE="<% $status %>"><% $status %>
+% }
- <% } %>
</SELECT>