From fda64dac607987cf537bbba1e39205c2d3c1594a Mon Sep 17 00:00:00 2001 From: jayce Date: Fri, 5 Oct 2007 14:26:37 +0000 Subject: [PATCH] Initial checkin, was missing from the cust_bill_has_service condition checkin. --- httemplate/elements/tr-select-part_svc.html | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 httemplate/elements/tr-select-part_svc.html diff --git a/httemplate/elements/tr-select-part_svc.html b/httemplate/elements/tr-select-part_svc.html new file mode 100644 index 000000000..0274ef12a --- /dev/null +++ b/httemplate/elements/tr-select-part_svc.html @@ -0,0 +1,29 @@ +% if ( scalar(@{ $opt{'part_svc'} }) == 0 ) { + + + +% } else { + + + <% $opt{'label'} || 'Package definition' %> + + <% include( '/elements/select-table.html', + 'table' => 'part_svc', + 'name_col' => 'svc', + 'multiple' => 1, + #N/A 'empty_label' => '(none)', + %opt, + ) + %> + + + +% } + +<%init> + +my( %opt ) = @_; + +$opt{'part_svc'} ||= [ qsearch( 'part_svc', {} ) ]; # { disabled=>'' } ) + + -- 2.11.0