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 action_prototypes => { delete_all => 'Delete all records' },
14 excluded_fields => [qw/id/],
15 action_order => [qw/delete_all create/],
17 action_order => [qw/view update delete/],
23 excluded_fields => [qw/id/],
27 ViewPort => {message => 'Are you sure you want to delete this Foo?'}
32 for my $action (qw/view create update/){
37 container_layouts => [
38 { name => 'primary', fields => [qw/first_name last_name/]},
41 label => 'Optional Label',
42 fields => [qw/bars bazes/],
51 sub _build_action_viewport_args {
53 my $args = $self->next::method(@_);
54 $args->{list}{action_prototypes}{delete_all}{label} = 'Delete All Records';