-<TR>
- <TD ALIGN="right"><% $opt{'label'} || 'Packages' %></TD>
- <TD>
+<& tr-td-label.html, label => emt('Packages'), %opt &>
+ <TD <% $style %>>
<% include( '/elements/select-table.html',
- 'table' => 'part_pkg',
- 'name_col' => 'pkg',
- 'value' => '',
- 'empty_label' => '(none)',
- 'element_etc' => 'multiple',
- %opt,
+ 'table' => 'part_pkg',
+ 'name_col' => 'pkg',
+ 'disable_empty' => 1,
+ 'element_etc' => 'multiple',
+ 'extra_sql' => 'WHERE ' . FS::part_pkg->curuser_pkgs_sql,
+ %opt,
)
- %>
+ %>
</TD>
</TR>
<%init>
my %opt = @_;
+my $style = $opt{'cell_style'};
+$style = 'STYLE="'.$style.'"' if $style;
</%init>