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/],
16 enable_order_by => [qw/last_name/],
18 action_order => [qw/view update delete/],
24 excluded_fields => [qw/id/],
28 ViewPort => {message => 'Are you sure you want to delete this Foo?'}
33 for my $action (qw/view create update/){
38 container_layouts => [
39 { name => 'primary', fields => [qw/first_name last_name/]},
42 label => 'Optional Label',
43 fields => [qw/bars bazes/],
52 # sub _build_action_viewport_args {
54 # my $args = $self->next::method(@_);
55 # # $args->{list}{action_prototypes}{delete_all}{label} = 'Delete All Records';