blob: b17191bc034f2f09e912fbfe75b6658a49578f99 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
% if ( 0 ) { # scalar(@{ $opt{'vend_class'} }) == 0 ) {
<INPUT TYPE="hidden" NAME="<% $opt{'element_name'} || $opt{'field'} || 'classnum' %>" VALUE="">
% } else {
<TR>
<TD ALIGN="right"><% $opt{'label'} || 'Vendor class' %></TD>
<TD>
<% include( '/elements/select-vend_class.html',
'curr_value' => $classnum,
%opt
)
%>
</TD>
</TR>
% }
<%init>
my %opt = @_;
my $classnum = $opt{'curr_value'} || $opt{'value'};
$opt{'vend_class'} ||= [ qsearch( 'vend_class', { disabled=>'' } ) ];
</%init>
|