4.x style
[freeside.git] / httemplate / elements / tr-duration.html
1 <%doc>
2
3 Example:
4
5   <& /elements/tr-duration.html,
6        'label' => 'Do or do not',
7        'field' => 'field_name',
8        'value' => 'Y',
9   &>
10
11 </%doc>
12 <% include('tr-td-label.html', @_ ) %>
13
14   <TD <% $style %>>
15     <% include('duration.html', @_) %>
16   </TD>
17
18 </TR>
19
20 <%init>
21
22 my %opt = @_;
23
24 my $onchange = $opt{'onchange'}
25                  ? 'onChange="'. $opt{'onchange'}. '(this)"'
26                  : '';
27
28 my $style = $opt{'cell_style'} ? 'STYLE="'. $opt{'cell_style'}. '"' : '';
29
30 </%init>