X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Felements%2Ftr-selectmultiple-part_pkg.html;h=ea87eeac07f61e4537177d898a334e057cc36b70;hb=b7d4aaee22ceda078bbfcca47038eb0bf4230a1c;hp=455038da9567305ef674fc56f829102e73328ab5;hpb=eb4ff7f73c5d4bdf74a3472448b5a195598ff4cd;p=freeside.git diff --git a/httemplate/elements/tr-selectmultiple-part_pkg.html b/httemplate/elements/tr-selectmultiple-part_pkg.html index 455038da9..ea87eeac0 100644 --- a/httemplate/elements/tr-selectmultiple-part_pkg.html +++ b/httemplate/elements/tr-selectmultiple-part_pkg.html @@ -1,20 +1,21 @@ - - <% $opt{'label'} || 'Packages' %> - +<& tr-td-label.html, label => emt('Packages'), %opt &> + > <% 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, ) - %> + %> <%init> my %opt = @_; +my $style = $opt{'cell_style'}; +$style = 'STYLE="'.$style.'"' if $style;