Commit | Line | Data |
---|---|---|
9de685fc | 1 | package Reaction::UI::Widget::ActionForm; |
2 | ||
3 | use Reaction::UI::WidgetClass; | |
4 | ||
5 | class ActionForm, which { | |
b8faba69 | 6 | widget renders [ qw/header fields buttons footer/ ]; |
9de685fc | 7 | |
6ab43711 | 8 | fields renders [field over func('viewport','ordered_fields')]; |
9 | field renders [ 'viewport' ]; | |
9de685fc | 10 | |
a4f82080 | 11 | #move button logic here |
6ab43711 | 12 | buttons renders [ string {"DUMMY"} ], |
13 | {message => sub{ $_{viewport}->can('message') ? $_{viewport}->message : "" } }; | |
9de685fc | 14 | header renders [ string {"DUMMY"} ]; |
15 | footer renders [ string {"DUMMY"} ]; | |
16 | ||
17 | }; | |
18 | ||
19 | 1; | |
20 | ||
21 | __END__; | |
22 | ||
5a1a893e | 23 | =head1 NAME |
9de685fc | 24 | |
5a1a893e | 25 | Reaction::UI::Widget::ActionForm |
9de685fc | 26 | |
5a1a893e | 27 | =head1 DESCRIPTION |
9de685fc | 28 | |
5a1a893e | 29 | =head1 FRAGMENTS |
9de685fc | 30 | |
5a1a893e | 31 | =head2 widget |
9de685fc | 32 | |
5a1a893e | 33 | Additional variables available in topic hash: "viewport". |
9de685fc | 34 | |
5a1a893e | 35 | Renders "header", "fields", "buttons" and "footer" |
9de685fc | 36 | |
5a1a893e | 37 | =head2 fields |
9de685fc | 38 | |
5a1a893e | 39 | Sequentially renders the C<ordered_fields> of the viewport |
9de685fc | 40 | |
5a1a893e | 41 | =head2 buttons |
9de685fc | 42 | |
5a1a893e | 43 | Additional variables available in topic hash: "message" |
9de685fc | 44 | |
5a1a893e | 45 | =head2 header |
46 | ||
47 | Content is a dummy value | |
48 | ||
49 | =head2 footer | |
50 | ||
51 | Content is a dummy value | |
52 | ||
53 | =head1 AUTHORS | |
54 | ||
55 | See L<Reaction::Class> for authors. | |
56 | ||
57 | =head1 LICENSE | |
58 | ||
59 | See L<Reaction::Class> for the license. | |
9de685fc | 60 | |
61 | =cut | |
5a1a893e | 62 |