aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ComponentUI
diff options
context:
space:
mode:
authorgroditi <groditi@03d0b0b2-0e1a-0410-a411-fdb2f4bd65d7>2008-10-11 21:15:47 +0000
committergroditi <groditi@03d0b0b2-0e1a-0410-a411-fdb2f4bd65d7>2008-10-11 21:15:47 +0000
commit37728bbad6840485e4d0e3a504dfdc851e7378c3 (patch)
tree0b971b7451c5fff6e554090f22ff881005729d5f /lib/ComponentUI
parent487c32080762a25ad34c785dc39753cbc941d355 (diff)
downloadreaction-37728bbad6840485e4d0e3a504dfdc851e7378c3.tar.gz
reaction-37728bbad6840485e4d0e3a504dfdc851e7378c3.zip
completely new way of handling action prototypes for actions in CRUD that is much saner and less reliant on $ctx. also more flexible and configurable
Diffstat (limited to 'lib/ComponentUI')
-rw-r--r--lib/ComponentUI/Controller/TestModel/Foo.pm11
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/ComponentUI/Controller/TestModel/Foo.pm b/lib/ComponentUI/Controller/TestModel/Foo.pm
index b5dfe5b..e8e2318 100644
--- a/lib/ComponentUI/Controller/TestModel/Foo.pm
+++ b/lib/ComponentUI/Controller/TestModel/Foo.pm
@@ -11,6 +11,10 @@ __PACKAGE__->config(
list => {
ViewPort => {
excluded_fields => [qw/id/],
+ action_order => [qw/delete_all create/],
+ Member => {
+ action_order => [qw/view update delete/],
+ },
},
},
view => {
@@ -40,4 +44,11 @@ for my $action (qw/view create update/){
);
}
+sub _build_action_viewport_args {
+ my $self = shift;
+ my $args = $self->next::method(@_);
+ $args->{list}{action_prototypes}{delete_all}{label} = 'Delete All Records';
+ return $args;
+}
+
1;