23 |
my $feeds = Jifty::Web::PageRegion->new( |
my $feeds = Jifty::Web::PageRegion->new( |
24 |
name => 'feeds', |
name => 'feeds', |
25 |
path => '/fragments/feeds', |
path => '/fragments/feeds', |
26 |
defaults => { |
force_arguments => { |
27 |
q => $q, |
q => $q, |
28 |
}, |
}, |
29 |
); |
); |
46 |
|
|
47 |
<% Jifty->web->form->start %> |
<% Jifty->web->form->start %> |
48 |
|
|
49 |
<% $search->form_field('content_contains', label => 'Search for') %> |
<% $search->form_field('content_contains', label => 'Search for', q => $q ) %> |
50 |
|
|
51 |
<% $search->button( label => 'Grep' ) %> |
<% $search->button( label => 'Grep' ) %> |
52 |
|
|
54 |
|
|
55 |
<% $results->render %> |
<% $results->render %> |
56 |
|
|
57 |
<& '/fragments/results', item_fragment => 'long' &> |
% if ( $q ) { |
58 |
|
<& '/fragments/results', item_fragment => 'long', q => $q &> |
59 |
|
% } |
60 |
|
|
61 |
</div> |
</div> |
62 |
|
|