summaryrefslogtreecommitdiff
path: root/httemplate/elements/select-part_svc.html
blob: 72ab7f6b04fbc286ae9d0543ab7d6622b5c1505a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<% include( '/elements/select-table.html',
              'table'         => 'part_svc',
              'name_col'      => 'svc',
              'label_showkey' => 1,
              #N/A 'empty_label' => '(none)',
              %opt,
          )
%>
<%init>

my( %opt ) = @_;

$opt{'records'} = delete $opt{'part_svc'}
  if $opt{'part_svc'};

$opt{'records'} ||= [ qsearch( 'part_svc', {} ) ]; # { disabled=>'' } )

</%init>