diff options
author | groditi <groditi@03d0b0b2-0e1a-0410-a411-fdb2f4bd65d7> | 2007-09-28 18:01:42 +0000 |
---|---|---|
committer | groditi <groditi@03d0b0b2-0e1a-0410-a411-fdb2f4bd65d7> | 2007-09-28 18:01:42 +0000 |
commit | 5a1a893ef93c22e0aba72a346749753ace194d66 (patch) | |
tree | e0e205313394669a385715c0139d7cf18a072127 /lib/Reaction/UI/Widget/Field/Boolean.pm | |
parent | 9de685fc288409d8b92e41f1e23b67562ea407f8 (diff) | |
download | reaction-5a1a893ef93c22e0aba72a346749753ace194d66.tar.gz reaction-5a1a893ef93c22e0aba72a346749753ace194d66.zip |
more work towards widgets, split up the templates and added some super basic POD
Diffstat (limited to 'lib/Reaction/UI/Widget/Field/Boolean.pm')
-rw-r--r-- | lib/Reaction/UI/Widget/Field/Boolean.pm | 31 |
1 files changed, 8 insertions, 23 deletions
diff --git a/lib/Reaction/UI/Widget/Field/Boolean.pm b/lib/Reaction/UI/Widget/Field/Boolean.pm index c6afaff..536764c 100644 --- a/lib/Reaction/UI/Widget/Field/Boolean.pm +++ b/lib/Reaction/UI/Widget/Field/Boolean.pm @@ -8,35 +8,20 @@ class Boolean is 'Reaction::UI::Widget::Field', which { 1; -=for layout widget +=head1 NAME -[% label %] [% field %] [% message %] <br> +Reaction::UI::Widget::Field::Boolean -=for layout field +=head1 DESCRIPTION -[% - IF content; - checked = 'checked="checked"'; - ELSE; - checked = ""; - END; -%] +See L<Reaction::UI::Widget::Field> -<!-- We need a replacement for process_attrs --> -<input type="checkbox" id="[% id | html %]" name="[% name | html %]" value="1" [% checked %] /> +=head1 AUTHORS -=for layout label +See L<Reaction::Class> for authors. -<!-- This conditional goes away when mst comes up with something better --> -[% IF content %] - <label for="[% id %]"> [% content | html %]: </label> -[% END %] +=head1 LICENSE -=for layout message - -<!-- This conditional goes away when mst comes up with something better --> -[% IF content %] - <span> [% content | html %] </span> -[% END %] +See L<Reaction::Class> for the license. =cut |