1 package ComponentUI::Controller::TestModel::Foo;
3 use base 'Reaction::UI::Controller::Collection::CRUD';
7 model_name => 'TestModel',
8 collection_name => 'Foo',
10 base => { Chained => '/base', PathPart => 'testmodel/foo' },
13 excluded_fields => [qw/id/],
14 action_order => [qw/delete_all create/],
16 action_order => [qw/view update delete/],
22 excluded_fields => [qw/id/],
28 for my $action (qw/view create update/){
33 container_layouts => [
34 { name => 'primary', fields => [qw/first_name last_name/]},
37 label => 'Optional Label',
38 fields => [qw/bars bazes/],
47 sub _build_action_viewport_args {
49 my $args = $self->next::method(@_);
50 $args->{list}{action_prototypes}{delete_all}{label} = 'Delete All Records';