%doc>
Example:
  <& /elements/tr-checkbox.html,
       'label' => 'Do or do not',
       'field' => 'field_name',
       'value' => 'Y',
  &>
%doc>
% if ( $opt{'box_first'} ) {
  
    | <& checkbox.html, @_ &>
      <% $required %><% $opt{label} %> | 
% } else {
<& tr-td-label.html, @_ &>
  >
    <% include('checkbox.html', @_) %>% }
<%init>
my %opt = @_;
my $onchange = $opt{'onchange'}
                 ? 'onChange="'. $opt{'onchange'}. '(this)"'
                 : '';
my $style = 'text-align: left; padding-top: 3px';
$style .= '; '. $opt{'cell_style'} if $opt{'cell_style'};
my $required = $opt{'required'} ? '* ' : '';
if ($required) {
  $style .= ';font-weight: bold';
}
%init> |