Commit | Line | Data |
8f19d042 |
1 | package Reaction::UI::Widget::Field::Number; |
2 | |
3 | use Reaction::UI::WidgetClass; |
4 | |
5 | class Number 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 | <input type="text" name="[% name | html%]" id="[% id | html %]" value="[% content | html %]" /> |
8f19d042 |
19 | |
20 | =for layout label |
21 | |
22 | <!-- This conditional goes away when mst comes up with something better --> |
23 | [% IF content %] |
9de685fc |
24 | <label for="[% id | html %]"> [% content | html %]: </label> |
8f19d042 |
25 | [% END %] |
26 | |
27 | =for layout message |
28 | |
29 | <!-- This conditional goes away when mst comes up with something better --> |
30 | [% IF content %] |
31 | <span> [% content | html %] </span> |
32 | [% END %] |
33 | |
34 | =cut |