projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
71513: Card tokenization [refund gateway choice]
[freeside.git]
/
httemplate
/
elements
/
tr-selectmultiple-part_pkg.html
diff --git
a/httemplate/elements/tr-selectmultiple-part_pkg.html
b/httemplate/elements/tr-selectmultiple-part_pkg.html
index
abf96d7
..
ea87eea
100644
(file)
--- 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() ];
-%
-%
-
-
-<TR>
- <TD ALIGN="right"><% $opt{'label'} || 'Packages' %></TD>
- <TD>
+<& tr-td-label.html, label => emt('Packages'), %opt &>
+ <TD <% $style %>>
<% include( '/elements/select-table.html',
<% 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>
</TD>
</TR>
+
+<%init>
+
+my %opt = @_;
+my $style = $opt{'cell_style'};
+$style = 'STYLE="'.$style.'"' if $style;
+
+</%init>