projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
RT# 31208 Docs $FS::Record::qsearch_qualify_columns
[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
d959a5b
..
ea87eea
100644
(file)
--- a/
httemplate/elements/tr-selectmultiple-part_pkg.html
+++ b/
httemplate/elements/tr-selectmultiple-part_pkg.html
@@
-1,19
+1,21
@@
-<TR>
- <TD ALIGN="right"><% $opt{'label'} || 'Packages' %></TD>
- <TD>
+<& tr-td-label.html, label => emt('Packages'), %opt &>
+ <TD <% $style %>>
<% include( '/elements/select-table.html',
'table' => 'part_pkg',
<% include( '/elements/select-table.html',
'table' => 'part_pkg',
- 'name_col' => 'pkg',
- 'disable_empty' => 1,
- 'element_etc' => 'multiple',
- %opt,
+ 'name_col' => 'pkg',
+ 'disable_empty' => 1,
+ 'element_etc' => 'multiple',
+ 'extra_sql' => 'WHERE ' . FS::part_pkg->curuser_pkgs_sql,
+ %opt,
)
)
-
%>
+ %>
</TD>
</TR>
<%init>
my %opt = @_;
</TD>
</TR>
<%init>
my %opt = @_;
+my $style = $opt{'cell_style'};
+$style = 'STYLE="'.$style.'"' if $style;
</%init>
</%init>