[Jifty-commit] r2037 - wifty/trunk/share/web/templates/_elements

jifty-commit at lists.jifty.org jifty-commit at lists.jifty.org
Thu Oct 19 17:46:38 EDT 2006


Author: nelhage
Date: Thu Oct 19 17:46:37 2006
New Revision: 2037

Added:
   wifty/trunk/share/web/templates/_elements/search_box

Log:
Actually adding the search box component

Added: wifty/trunk/share/web/templates/_elements/search_box
==============================================================================
--- (empty file)
+++ wifty/trunk/share/web/templates/_elements/search_box	Thu Oct 19 17:46:37 2006
@@ -0,0 +1,10 @@
+<%init>
+my $action =  Jifty->web->new_action(class => 'SearchPage', moniker => 'search');
+$action->sticky_on_success(1);
+</%init>
+<span>
+<% Jifty->web->form->start %>
+<% Jifty->web->form->next_page(url => '/search') %>
+<% $action->form_field('contains', label => 'Search:') %>
+<% Jifty->web->form->end %>
+</span>


More information about the Jifty-commit mailing list