X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Felements%2Ftr-selectmultiple-part_pkg.html;h=0b83da02c83eb171e1ca4acaf432386646083348;hp=abf96d7260fba970bf0eccfa789598bf3b4e4ddb;hb=6dda95db961112c4a422ebe282b6dfc7935be40e;hpb=0c2f4bccc3810426d4b9e31dca645711c32f0b63 diff --git a/httemplate/elements/tr-selectmultiple-part_pkg.html b/httemplate/elements/tr-selectmultiple-part_pkg.html index abf96d726..0b83da02c 100644 --- a/httemplate/elements/tr-selectmultiple-part_pkg.html +++ b/httemplate/elements/tr-selectmultiple-part_pkg.html @@ -1,23 +1,20 @@ -% -% 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', + 'table' => 'part_pkg', + 'name_col' => 'pkg', + 'disable_empty' => 1, + 'element_etc' => 'multiple', %opt, ) - %> + %> + +<%init> + +my %opt = @_; +my $style = $opt{'cell_style'}; +$style = 'STYLE="'.$style.'"' if $style; + +