use namespace::clean -except => [ qw(meta) ];
use aliased 'Reaction::UI::ViewPort::Field::String::Fragment';
-extends 'Reaction::UI::ViewPort::Collection::Grid::Member::WithActions';
+extends 'Reaction::UI::ViewPort::Collection::Grid::Member';
sub _build_layout {
- 'collection/grid/member/with_actions';
+ 'collection/grid/member';
}
sub _build_fields_for_name_description {
know how many actions to expect to lay out the UI properly.
=item Default to member-class
-L<Grid::Member::WithActions|Reaction::UI::ViewPort::Collection::Grid::Member::WithActions>
+L<Grid::Member|Reaction::UI::ViewPort::Collection::Grid::Member>
=back
use namespace::clean -except => [ qw(meta) ];
extends 'Reaction::UI::ViewPort';
+with 'Reaction::UI::ViewPort::Collection::Role::Pager';
+with 'Reaction::UI::ViewPort::Role::Actions';
+
has members => (is => 'rw', isa => 'ArrayRef', lazy_build => 1);
has collection => (is => 'ro', isa => IM_Collection, required => 1);
The class to use when instantiating items to represent the member items.
See: L<Object|Reaction::UI::ViewPort::Object>,
-L<Member|Reaction::UI::ViewPort::Grid::Member>,
-L<Member::WithActions|Reaction::UI::ViewPort::Grid::Member::WithActions>,
+L<Member|Reaction::UI::ViewPort::Collection::Grid::Member>.
=head1 INTERNAL METHODS
use Reaction::Class;
use aliased 'Reaction::InterfaceModel::Collection' => 'IM_Collection';
-use aliased 'Reaction::UI::ViewPort::Collection::Grid::Member::WithActions';
+use aliased 'Reaction::UI::ViewPort::Collection::Grid::Member';
use namespace::clean -except => [ qw(meta) ];
use MooseX::Types::Moose qw/ArrayRef HashRef Int/;
);
####################################
-sub _build_member_class { WithActions };
+sub _build_member_class { Member };
sub _build_field_labels {
my $self = shift;
+++ /dev/null
-package Reaction::UI::ViewPort::Collection::Grid::Member::WithActions;
-
-use Reaction::Class;
-
-use namespace::clean -except => [ qw(meta) ];
-extends 'Reaction::UI::ViewPort::Collection::Grid::Member';
-
-with 'Reaction::UI::ViewPort::Role::Actions';
-
-__PACKAGE__->meta->make_immutable;
-
-
-1;
extends 'Reaction::UI::ViewPort::Collection::Grid';
with 'Reaction::UI::ViewPort::Collection::Role::Order';
-with 'Reaction::UI::ViewPort::Collection::Role::Pager';
-with 'Reaction::UI::ViewPort::Role::Actions';
__PACKAGE__->meta->make_immutable;
-
1;
use namespace::clean -except => [ qw(meta) ];
extends 'Reaction::UI::ViewPort';
+with 'Reaction::UI::ViewPort::Role::Actions';
+
#everything is read only right now. Later I can make somethings read-write
#but first I need to figure out what depends on what so we can have decent triggers
has model => (is => 'ro', isa => IM_Object, required => 1);
=item * L<Reaction::UI::Widget::Collection::Grid>
-=item * L<Reaction::UI::Widget::Collection::Grid::Member::WithActions>
+=item * L<Reaction::UI::Widget::Collection::Grid::Member>
=back
+++ /dev/null
-package Reaction::UI::Widget::Collection::Grid::Member::WithActions;
-
-use Reaction::UI::WidgetClass;
-
-use namespace::clean -except => [ qw(meta) ];
-extends 'Reaction::UI::Widget::Collection::Grid::Member';
-
-implements fragment actions {
- render action => over $_{viewport}->actions;
-};
-
-implements fragment action {
- render 'viewport';
-};
-
-__PACKAGE__->meta->make_immutable;
-
-1;
-
-__END__;
-
-=head1 NAME
-
-Reaction::UI::Widget::Collection::Grid::Member::WithActions - Grid members with actions
-
-=head1 DESCRIPTION
-
-This is a subclass of L<Reaction::UI::Widget::Grid::Member> additionally
-providing actions per member.
-
-=head1 FRAGMENTS
-
-=head2 actions
-
-Renders the C<action> fragment with every item in the viewports C<actions>.
-
-=head2 action
-
-Renders the C<viewport> fragment provided by L<Reaction::UI::Widget>, thus
-rendering the current viewport stored in the C<_> topic argument provided
-by the C<actions> fragment.
-
-=head1 LAYOUT SETS
-
-=head2 base
-
- share/skin/base/layout/collection/grid/member/with_actions.tt
-
-This layout set extends the C<collection/grid/member> layout set in the parent
-skin.
-
-The following layouts are provided:
-
-=over 4
-
-=item field_list
-
-First renders the original C<field_list> fragment, then the C<actions> fragment.
-
-=item action
-
-Simply renders the next C<action> fragment in line.
-
-=back
-
-=head2 default
-
- share/skin/default/layout/collection/grid/member/with_actions.tt
-
-This layout skin extends the C<collection/grid/member> layout set in the parent
-skin.
-
-The following layouts are provided:
-
-=over 4
-
-=item field_list
-
-The same as in the C<base> skin.
-
-=item action
-
-Renders the original C<action> fragment surrounded by a C<td> element.
-
-=back
-
-=head1 SEE ALSO
-
-=over 4
-
-=item * L<Reaction::UI::Widget::Grid::Member>
-
-=item * L<Reaction::UI::Widget::Grid>
-
-=back
-
-=head1 AUTHORS
-
-See L<Reaction::Class> for authors.
-
-=head1 LICENSE
-
-See L<Reaction::Class> for the license.
-
-=cut
render 'viewport';
};
+implements fragment actions {
+ render action => over $_{viewport}->actions;
+};
+
+implements fragment action {
+ render 'viewport';
+};
+
__PACKAGE__->meta->make_immutable;
1;
Renders the C<field> viewport passed by C<container_list>.
+=head2 actions
+
+Renders the C<action> fragment with every item in the viewports C<actions>.
+
+=head2 action
+
+Renders the C<viewport> fragment provided by L<Reaction::UI::Widget>, thus
+rendering the current viewport stored in the C<_> topic argument provided
+by the C<actions> fragment.
+
=head1 DEPRECATED FRAGMENTS
=head2 field_list
+++ /dev/null
-=extends collection/grid/member
-
-=for layout field_list
-
-[% call_next %]
-[% actions %]
-
-=for layout action
-
-[% call_next %]
-
-=cut
[% call_next %]
+=for layout field_list
+
+[% call_next %]
+[% actions %]
+
+=for layout action
+
+[% call_next %]
+
=cut
+++ /dev/null
-=extends collection/grid/member
-
-=for layout field_list
-
-[% call_next %]
-[% actions %]
-
-=for layout action
-
-<td>[% call_next %]</td>
-
-=cut
[% call_next %] <br>
+=for layout action
+
+<td>[% call_next %]</td>
+
=cut