r15165@deathmachine (orig r402): groditi | 2007-11-14 13:33:11 -0500
[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 {
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
191;
20
21__END__;
22
5a1a893e 23=head1 NAME
9de685fc 24
5a1a893e 25Reaction::UI::Widget::ActionForm
9de685fc 26
5a1a893e 27=head1 DESCRIPTION
9de685fc 28
5a1a893e 29=head1 FRAGMENTS
9de685fc 30
5a1a893e 31=head2 widget
9de685fc 32
5a1a893e 33Additional variables available in topic hash: "viewport".
9de685fc 34
5a1a893e 35Renders "header", "fields", "buttons" and "footer"
9de685fc 36
5a1a893e 37=head2 fields
9de685fc 38
5a1a893e 39Sequentially renders the C<ordered_fields> of the viewport
9de685fc 40
5a1a893e 41=head2 buttons
9de685fc 42
5a1a893e 43Additional variables available in topic hash: "message"
9de685fc 44
5a1a893e 45=head2 header
46
47Content is a dummy value
48
49=head2 footer
50
51Content is a dummy value
52
53=head1 AUTHORS
54
55See L<Reaction::Class> for authors.
56
57=head1 LICENSE
58
59See L<Reaction::Class> for the license.
9de685fc 60
61=cut
5a1a893e 62