summaryrefslogtreecommitdiff
path: root/httemplate/elements/select-part_svc.html
blob: 743b2852ee0a5f4ac1e42600822edf3a209bc5f4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<% 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'};

my %hash = ();
$hash{'svcdb'} = $opt{'svcdb'} if $opt{'svcdb'};

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

</%init>