X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Felements%2Ftr-selectmultiple-part_pkg.html;h=ea87eeac07f61e4537177d898a334e057cc36b70;hb=8c36d1e4f1255abb483bc7372fa1908cc192b528;hp=abf96d7260fba970bf0eccfa789598bf3b4e4ddb;hpb=0c2f4bccc3810426d4b9e31dca645711c32f0b63;p=freeside.git diff --git a/httemplate/elements/tr-selectmultiple-part_pkg.html b/httemplate/elements/tr-selectmultiple-part_pkg.html index abf96d726..ea87eeac0 100644 --- a/httemplate/elements/tr-selectmultiple-part_pkg.html +++ b/httemplate/elements/tr-selectmultiple-part_pkg.html @@ -1,23 +1,21 @@ -% -% my( $cust_fields, %opt ) = @_; -% -% use FS::ConfDefaults; -% $opt{'avail_fields'} ||= [ FS::ConfDefaults->cust_fields_avail() ]; -% -% - - - - <% $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; + +