diff options
author | ivan <ivan> | 2008-01-04 02:23:20 +0000 |
---|---|---|
committer | ivan <ivan> | 2008-01-04 02:23:20 +0000 |
commit | 93838a89d0010da5c4757a5dc4f626d6bfe806f8 (patch) | |
tree | a9e667398d85216116cc48e50c3d5efcb7e2ec7b /httemplate/elements/tr-checkbox.html | |
parent | f3dcab6b9862f3e4f85cdbeed428861e34271a51 (diff) |
reprocussions: backporting elements from HEAD needed for edit.html
Diffstat (limited to 'httemplate/elements/tr-checkbox.html')
-rw-r--r-- | httemplate/elements/tr-checkbox.html | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/httemplate/elements/tr-checkbox.html b/httemplate/elements/tr-checkbox.html new file mode 100644 index 000000000..2e6d1f107 --- /dev/null +++ b/httemplate/elements/tr-checkbox.html @@ -0,0 +1,25 @@ +<% include('tr-td-label.html', @_ ) %> + + <TD <% $style %>> + <INPUT TYPE = "checkbox" + NAME = "<% $opt{field} %>" + ID = "<% $opt{id} %>" + VALUE = "<% $opt{value} %>" + <% $opt{curr_value} eq $opt{value} ? ' CHECKED' : '' %> + <% $onchange %> + > + </TD> + +</TR> + +<%init> + +my %opt = @_; + +my $onchange = $opt{'onchange'} + ? 'onChange="'. $opt{'onchange'}. '(this)"' + : ''; + +my $style = $opt{'cell_style'} ? 'STYLE="'. $opt{'cell_style'}. '"' : ''; + +</%init> |