diff options
author | jayce <jayce> | 2007-10-05 14:26:37 +0000 |
---|---|---|
committer | jayce <jayce> | 2007-10-05 14:26:37 +0000 |
commit | fda64dac607987cf537bbba1e39205c2d3c1594a (patch) | |
tree | c06bf1c09b1b89080399807723d335120f519221 /httemplate/elements | |
parent | 7349e2c4d087cee96f677dc05e316885386428a7 (diff) |
Initial checkin, was missing from the cust_bill_has_service condition checkin.
Diffstat (limited to 'httemplate/elements')
-rw-r--r-- | httemplate/elements/tr-select-part_svc.html | 29 |
1 files changed, 29 insertions, 0 deletions
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 ) { + + <INPUT TYPE="hidden" NAME="<% $opt{'field'} || 'svcpart' %>" VALUE=""> + +% } else { + + <TR> + <TD ALIGN="right"><% $opt{'label'} || 'Package definition' %></TD> + <TD> + <% include( '/elements/select-table.html', + 'table' => 'part_svc', + 'name_col' => 'svc', + 'multiple' => 1, + #N/A 'empty_label' => '(none)', + %opt, + ) + %> + </TD> + </TR> + +% } + +<%init> + +my( %opt ) = @_; + +$opt{'part_svc'} ||= [ qsearch( 'part_svc', {} ) ]; # { disabled=>'' } ) + +</%init> |