From 6b12c14cc10503d6b0783e8ef71fe44d9a9b37b6 Mon Sep 17 00:00:00 2001 From: ivan Date: Mon, 19 Jun 2006 08:05:28 +0000 Subject: add ability to select specific package defs. and package status to package report for qis --- httemplate/elements/tr-select-cust_pkg-status.html | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 httemplate/elements/tr-select-cust_pkg-status.html (limited to 'httemplate/elements/tr-select-cust_pkg-status.html') diff --git a/httemplate/elements/tr-select-cust_pkg-status.html b/httemplate/elements/tr-select-cust_pkg-status.html new file mode 100644 index 000000000..17768517d --- /dev/null +++ b/httemplate/elements/tr-select-cust_pkg-status.html @@ -0,0 +1,13 @@ +<% + my( $status, %opt ) = @_; + + $opt{'statuses'} ||= [ FS::cust_pkg->statuses() ]; # { disabled=>'' } ) + +%> + + + <%= $opt{'label'} || 'Status' %> + + <%= include( '/elements/select-cust_pkg-status.html', $status, %opt ) %> + + -- cgit v1.2.1 From 3ce7691203a7737406bf2d4442f7fd84b81f847e Mon Sep 17 00:00:00 2001 From: ivan Date: Wed, 23 Aug 2006 22:25:39 +0000 Subject: Will things ever be the same again? It's the final masonize --- httemplate/elements/tr-select-cust_pkg-status.html | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'httemplate/elements/tr-select-cust_pkg-status.html') diff --git a/httemplate/elements/tr-select-cust_pkg-status.html b/httemplate/elements/tr-select-cust_pkg-status.html index 17768517d..22ee146cd 100644 --- a/httemplate/elements/tr-select-cust_pkg-status.html +++ b/httemplate/elements/tr-select-cust_pkg-status.html @@ -1,13 +1,14 @@ -<% - my( $status, %opt ) = @_; +% +% my( $status, %opt ) = @_; +% +% $opt{'statuses'} ||= [ FS::cust_pkg->statuses() ]; # { disabled=>'' } ) +% +% - $opt{'statuses'} ||= [ FS::cust_pkg->statuses() ]; # { disabled=>'' } ) - -%> - <%= $opt{'label'} || 'Status' %> + <% $opt{'label'} || 'Status' %> - <%= include( '/elements/select-cust_pkg-status.html', $status, %opt ) %> + <% include( '/elements/select-cust_pkg-status.html', $status, %opt ) %> -- cgit v1.2.1