<% 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=>'' } )