5 <& /elements/tr-checkbox.html,
6 'label' => 'Do or do not',
7 'field' => 'field_name',
12 % if ( $opt{'box_first'} ) {
14 <TH COLSPAN="<% $opt{'colspan'} || 2 %>"
15 VALIGN = "<% $opt{'valign'} || 'top' %>"
16 STYLE = "<% $style %>"
17 ID = "<% $opt{label_id} || $opt{id}. '_label0' %>"
19 <& checkbox.html, @_ &>
20 <% $required %><% $opt{label} %>
24 <& tr-td-label.html, @_ &>
27 <% include('checkbox.html', @_) %>
37 my $onchange = $opt{'onchange'}
38 ? 'onChange="'. $opt{'onchange'}. '(this)"'
41 my $style = 'text-align: left; padding-top: 3px';
42 $style .= '; '. $opt{'cell_style'} if $opt{'cell_style'};
44 my $required = $opt{'required'} ? '<font color="#ff0000">*</font> ' : '';
46 $style .= ';font-weight: bold';