+
%# include export selection
<& export_svc.html,
part_svc => $part_svc,
svcdb => $svcdb
&>
-For the selected table, you can give fields default or fixed (unchangeable)
-values, or select an inventory class to manually or automatically fill in
-that field.
+
+Fields
<& /elements/table-grid.html, cellpadding => 4 &>
Field
Label
Modifier
+
<% $manual_require ? 'Required?' : '' %>
% $part_svc->set('svcpart' => $opt{'clone'}) if $opt{'clone'}; # for now
% my $i = 0;
@@ -132,7 +132,10 @@ that field.
% } elsif ( $def->{'type'} eq 'select' ) {
%
% if ( $def->{'select_table'} ) {
- <& /elements/select-table.html,
+% # set the 'select_svc' flag to enable two-step selection of services
+% my $comp = '/elements/select-table.html';
+% $comp = '/elements/select-svc.html' if $def->{'select_svc'};
+ <& $comp,
'field' => $name,
'id' => $name.'_select',
'table' => $def->{'select_table'},
@@ -208,11 +211,21 @@ that field.
'empty_label' => "Select $mode class",
'multiple' => $multiple,
&>
+% }
+
+