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