compatibility fixes for Class::MOP 0.93
[catagits/Reaction.git] / lib / Reaction / UI / Widget / Field / Mutable / HiddenArray.pm
CommitLineData
2f670e13 1package Reaction::UI::Widget::Field::Mutable::HiddenArray;
8f19d042 2
3use Reaction::UI::WidgetClass;
4
2f670e13 5#move this to a normal list and let the hidden part be decided by the template..
bae75bee 6use namespace::clean -except => [ qw(meta) ];
7extends 'Reaction::UI::Widget::Field::Mutable';
8f19d042 8
bae75bee 9implements fragment hidden_list {
10 render hidden_field => over $_{viewport}->value;
8f19d042 11};
12
bae75bee 13implements fragment hidden_field {
14 arg field_value => $_;
15};
16
17__PACKAGE__->meta->make_immutable;
18
19
8f19d042 201;
21
6ab43711 22__END__;
8f19d042 23
5a1a893e 24=head1 NAME
8f19d042 25
87b8ba85 26Reaction::UI::Widget::Field::Mutable::HiddenArray
8f19d042 27
5a1a893e 28=head1 DESCRIPTION
8f19d042 29
f9b32c83 30See L<Reaction::UI::Widget::Field::Mutable>. This renders a list of values
31as a series of hidden fields to transport them across forms.
8f19d042 32
5a1a893e 33=head1 FRAGMENTS
8f19d042 34
f9b32c83 35=head2 hidden_list
36
37Renders C<hidden_field> over the array reference stored in the viewpoint's
38C<value>.
39
40=head2 hidden_field
41
42Sets the C<field_value> argument to the current topic argument C<_>.
43
5a1a893e 44=head2 field
8f19d042 45
5a1a893e 46renders fragment C<item> over the values of 'value' arrayref
8f19d042 47
5a1a893e 48=head2 item
49
50C<content> is $_{_} / $_ (current item in the 'value' array)
51
f9b32c83 52=head1 LAYOUT SETS
53
54=head2 base
55
56 share/skin/base/layout/field/mutable/hidden_array.tt
57
58Provides a C<hidden_field> layout that renders a hidden input element.
59
5a1a893e 60=head1 AUTHORS
61
62See L<Reaction::Class> for authors.
63
64=head1 LICENSE
65
66See L<Reaction::Class> for the license.
8f19d042 67
68=cut