3 Display a <tr> containing multiple checkboxes
7 <& /elements/tr-checkbox-multipe.html,
10 options => ['opt1', 'opt2'],
16 opt2 => '1', # opt2 defaults as checked
21 <% include('tr-td-label.html', @_ ) %>
25 % foreach my $option ( @{ $opt{options} } ) { #just arrayref for now
27 <INPUT TYPE = "checkbox"
28 NAME = "<% $opt{field} %>"
29 ID = "<% $opt{id}.'_'.$option %>"
30 VALUE = "<% $option %>"
31 <% ref($value) && $value->{$option} || $value eq $option
36 > <% $labels->{$option} %>
50 my $onchange = $opt{'onchange'}
51 ? 'onChange="'. $opt{'onchange'}. '(this)"'
54 my $value = $opt{'curr_value'} || $opt{'value'};
56 $value = $opt{default_value} if $opt{default_value} && !defined($value);
58 my $labels = $opt{'option_labels'} || $opt{'labels'};
60 my $style = $opt{'cell_style'} ? 'STYLE="'. $opt{'cell_style'}. '"' : '';