diff options
author | ivan <ivan> | 2006-08-23 22:25:39 +0000 |
---|---|---|
committer | ivan <ivan> | 2006-08-23 22:25:39 +0000 |
commit | 3ce7691203a7737406bf2d4442f7fd84b81f847e (patch) | |
tree | 90658b097da96772224f04771888ac6ca1a940aa /httemplate/elements/select-cust_pkg-status.html | |
parent | 15e561850b61b10a92a46d8f3e316d53d4970087 (diff) |
Will things ever be the same again?
It's the final masonize
Diffstat (limited to 'httemplate/elements/select-cust_pkg-status.html')
-rw-r--r-- | httemplate/elements/select-cust_pkg-status.html | 17 |
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> |