diff options
Diffstat (limited to 'httemplate/elements/tr-duration.html')
-rw-r--r-- | httemplate/elements/tr-duration.html | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/httemplate/elements/tr-duration.html b/httemplate/elements/tr-duration.html new file mode 100644 index 000000000..2517302ea --- /dev/null +++ b/httemplate/elements/tr-duration.html @@ -0,0 +1,30 @@ +<%doc> + +Example: + + <& /elements/tr-duration.html, + 'label' => 'Do or do not', + 'field' => 'field_name', + 'value' => 'Y', + &> + +</%doc> +<% include('tr-td-label.html', @_ ) %> + + <TD <% $style %>> + <% include('duration.html', @_) %> + </TD> + +</TR> + +<%init> + +my %opt = @_; + +my $onchange = $opt{'onchange'} + ? 'onChange="'. $opt{'onchange'}. '(this)"' + : ''; + +my $style = $opt{'cell_style'} ? 'STYLE="'. $opt{'cell_style'}. '"' : ''; + +</%init> |