summaryrefslogtreecommitdiff
path: root/httemplate/elements/tr-selectmultiple-part_pkg.html
blob: ea87eeac07f61e4537177d898a334e057cc36b70 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<& tr-td-label.html, label => emt('Packages'), %opt &>
  <TD <% $style %>>
    <% include( '/elements/select-table.html',
                  '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>