projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Will things ever be the same again?
[freeside.git]
/
httemplate
/
elements
/
select-cust_pkg-status.html
diff --git
a/httemplate/elements/select-cust_pkg-status.html
b/httemplate/elements/select-cust_pkg-status.html
index
5da93fe
..
58f2703
100644
(file)
--- 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
<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>
</SELECT>