% unless ( $opt{'js_only'} ) {
<& tr-td-label.html, %opt &>
<% $style %>>
% }
<& checkbox.html,
%opt,
prefix => '',
value => 'Y',
curr_value => $curr_value,
onchange => $opt{field}. '_changed',
&>
<& select-time-from_to.html,
%opt,
disabled => ($curr_value eq 'Y' ? '' : 'DISABLED' )
&>
% unless ( $opt{'js_only'} ) {
|
% }
% unless ( $opt{'html_only'} || $opt{'js_only'} ) {
% }
<%init>
my %opt = @_;
my $style = $opt{'cell_style'} ? 'STYLE="'. $opt{'cell_style'}. '"' : '';
my $colspan = $opt{'colspan'} ? 'COLSPAN="'.$opt{'colspan'}.'"' : '';
my $curr_value = $cgi->param($opt{'field'}); #wtf?
%init>