summaryrefslogtreecommitdiff
path: root/httemplate/elements/tr-checkbox.html
blob: 5761263cf8947f638fd9b49b151015db085f7664 (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
28
29
30
<%doc>

Example:

  <& /elements/tr-checkbox.html,
       'label' => 'Do or do not',
       'field' => 'field_name',
       'value' => 'Y',
  &>

</%doc>
<% include('tr-td-label.html', @_ ) %>

  <TD <% $style %>>
    <% include('checkbox.html', @_) %>
  </TD>

</TR>

<%init>

my %opt = @_;

my $onchange = $opt{'onchange'}
                 ? 'onChange="'. $opt{'onchange'}. '(this)"'
                 : '';

my $style = $opt{'cell_style'} ? 'STYLE="'. $opt{'cell_style'}. '"' : '';

</%init>