[Jifty-commit] r2479 - in jifty/trunk: t/TestApp/lib/TestApp/Action t/TestApp/share/web/templates

jifty-commit at lists.jifty.org jifty-commit at lists.jifty.org
Mon Jan 8 21:34:25 EST 2007


Author: trs
Date: Mon Jan  8 21:34:24 2007
New Revision: 2479

Added:
   jifty/trunk/t/TestApp/lib/TestApp/Action/DoSomethingElse.pm
   jifty/trunk/t/TestApp/share/web/templates/dosomethingelse
Modified:
   jifty/trunk/   (props changed)

Log:
 r18762 at zot:  tom | 2007-01-08 21:33:32 -0500
 Missing template and action for r2463


Added: jifty/trunk/t/TestApp/lib/TestApp/Action/DoSomethingElse.pm
==============================================================================
--- (empty file)
+++ jifty/trunk/t/TestApp/lib/TestApp/Action/DoSomethingElse.pm	Mon Jan  8 21:34:24 2007
@@ -0,0 +1,22 @@
+package TestApp::Action::DoSomethingElse;
+
+use Jifty::Param::Schema;
+use Jifty::Action schema {
+
+param foo =>
+    label is 'Foo',
+    ajax validates,
+    is mandatory;
+
+param bar =>
+    label is 'Bar',
+    ajax validates,
+    is mandatory;
+};
+
+sub take_action {
+    my $self = shift;
+    $self->result->message("Something happened!");
+}
+
+1;

Added: jifty/trunk/t/TestApp/share/web/templates/dosomethingelse
==============================================================================
--- (empty file)
+++ jifty/trunk/t/TestApp/share/web/templates/dosomethingelse	Mon Jan  8 21:34:24 2007
@@ -0,0 +1,14 @@
+<%init>
+my $action = Jifty->web->new_action(
+    class => 'DoSomethingElse',
+    moniker => 'dosomething',
+);
+</%init>
+<&| /_elements/wrapper, title => "Test of simple form for validation" &>
+  Basic test of a simple form for validation.
+<% Jifty->web->form->start() %>
+<% $action->form_field('foo') %>
+<% $action->form_field('bar') %>
+<% Jifty->web->form->submit %>
+<% Jifty->web->form->end %>
+</&>


More information about the Jifty-commit mailing list