[Jifty-commit] r5971 - in jifty/trunk: plugins/Multipage/lib/Jifty/Plugin/Multipage

Jifty commits jifty-commit at lists.jifty.org
Fri Oct 31 15:59:22 EDT 2008


Author: alexmv
Date: Fri Oct 31 15:59:21 2008
New Revision: 5971

Modified:
   jifty/trunk/   (props changed)
   jifty/trunk/plugins/Multipage/lib/Jifty/Plugin/Multipage/Action.pm

Log:
 r38807 at kohr-ah:  chmrr | 2008-10-31 15:58:47 -0400
  * Add a previous page button


Modified: jifty/trunk/plugins/Multipage/lib/Jifty/Plugin/Multipage/Action.pm
==============================================================================
--- jifty/trunk/plugins/Multipage/lib/Jifty/Plugin/Multipage/Action.pm	(original)
+++ jifty/trunk/plugins/Multipage/lib/Jifty/Plugin/Multipage/Action.pm	Fri Oct 31 15:59:21 2008
@@ -129,6 +129,27 @@
     );
 }
 
+=head2 prev_page_button [ARGS]
+
+Acts like L<Jifty::Action/button>, except with appropriate defaults to
+move to the previous page in the action.
+
+=cut
+
+sub prev_page_button {
+    my $self = shift;
+    my %args = @_;
+
+    return $self->button(
+        register => 1,
+        label => "Back",
+        submit => [],
+        call => Jifty->web->request->continuation,
+        as_button => 1,
+        %args,
+    );
+}
+
 =head2 finish_button [ARGS]
 
 Acts like L<Jifty::Action/button>, except with appropriate defaults to


More information about the Jifty-commit mailing list