[Jifty-commit] r4687 -
jifty/trunk/t/TestApp-JiftyJS/lib/TestApp/JiftyJS
jifty-commit at lists.jifty.org
jifty-commit at lists.jifty.org
Fri Dec 14 02:42:49 EST 2007
Author: gugod
Date: Fri Dec 14 02:42:49 2007
New Revision: 4687
Modified:
jifty/trunk/t/TestApp-JiftyJS/lib/TestApp/JiftyJS/View.pm
Log:
Adda another URL that shows the same form as /c/page1/ to test if the
form_return really return to the tangent point.
Modified: jifty/trunk/t/TestApp-JiftyJS/lib/TestApp/JiftyJS/View.pm
==============================================================================
--- jifty/trunk/t/TestApp-JiftyJS/lib/TestApp/JiftyJS/View.pm (original)
+++ jifty/trunk/t/TestApp-JiftyJS/lib/TestApp/JiftyJS/View.pm Fri Dec 14 02:42:49 2007
@@ -63,7 +63,7 @@
# Templtes for testing continuation. Using the example in Jifty::Manual::Continuations
-template '/c/page1' => page {
+private template '/c/_first_number_form' => sub {
my $action = new_action(class => 'AddTwoNumbers');
form {
$action->form_field( 'first_number' )->render;
@@ -80,6 +80,14 @@
};
};
+template '/c/page1' => page {
+ show('/c/_first_number_form');
+};
+
+template '/c/page_another_one' => page {
+ show('/c/_first_number_form');
+};
+
template '/c/page2' => page {
form {
label { "Second Number" };
@@ -87,5 +95,6 @@
form_return( label => "Pick", as_button => 1);
}
};
+
##
1;
More information about the Jifty-commit
mailing list