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.html20
1 files changed, 20 insertions, 0 deletions
diff --git a/httemplate/elements/select-cust_pkg-status.html b/httemplate/elements/select-cust_pkg-status.html
new file mode 100644
index 000000000..58f270342
--- /dev/null
+++ b/httemplate/elements/select-cust_pkg-status.html
@@ -0,0 +1,20 @@
+%
+% my( $status, %opt ) = @_;
+%
+% $opt{'statuses'} ||= [ FS::cust_pkg->statuses() ]; # { disabled=>'' } )
+%
+%
+
+
+<SELECT NAME="status">
+
+ <OPTION VALUE="">all
+% foreach my $status ( @{ $opt{'statuses'} } ) {
+
+
+ <OPTION VALUE="<% $status %>"><% $status %>
+% }
+
+
+</SELECT>
+