more Widget updates. this breaks old-style templates, also changed how VPs behave...
[catagits/Reaction.git] / lib / Reaction / UI / Widget / Field / Text.pm
CommitLineData
8f19d042 1package Reaction::UI::Widget::Field::Text;
2
3use Reaction::UI::WidgetClass;
4
5class Text is 'Reaction::UI::Widget::Field', which {
6
7};
8
91;
10
11=for layout widget
12
9de685fc 13[% label %] [% field %] [% message %]
8f19d042 14
15=for layout field
16
17<!-- We need a replacement for process_attrs -->
9de685fc 18<textarea name="[% name | html %]" id="[% id | html %]">
8f19d042 19 [% content | html %]
20</textarea>
21
22=for layout label
23
24<!-- This conditional goes away when mst comes up with something better -->
25[% IF content %]
9de685fc 26 <label for="[% id | html %]"> [% content | html %]: </label>
8f19d042 27[% END %]
28
29=for layout message
30
31<!-- This conditional goes away when mst comes up with something better -->
32[% IF content %]
33 <span> [% content | html %] </span>
34[% END %]
35
36=cut