diff options
Diffstat (limited to 'httemplate/elements/tr-checkbox-multiple.html')
-rw-r--r-- | httemplate/elements/tr-checkbox-multiple.html | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/httemplate/elements/tr-checkbox-multiple.html b/httemplate/elements/tr-checkbox-multiple.html index 4d754b007..baf18f916 100644 --- a/httemplate/elements/tr-checkbox-multiple.html +++ b/httemplate/elements/tr-checkbox-multiple.html @@ -1,3 +1,23 @@ +<%doc> + +Display a <tr> containing multiple checkboxes + +USAGE: + +<& /elements/tr-checkbox-multipe.html, + label => emt('Label'), + field => 'field_name', + options => ['opt1', 'opt2'], + labels => { + opt1 => 'Option 1', + opt2 => 'Option 2', + }, + value => { + opt2 => '1', # opt2 defaults as checked + } +&> + +</%doc> <% include('tr-td-label.html', @_ ) %> <TD <% $style %>> |