Commit | Line | Data |
8f19d042 |
1 | package Reaction::UI::Widget::Field::Text; |
2 | |
3 | use Reaction::UI::WidgetClass; |
4 | |
5 | class Text is 'Reaction::UI::Widget::Field', which { |
6 | |
7 | }; |
8 | |
9 | 1; |
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 |