Commit 740b68359ce2c7527063cbdf267b3f2546814aca
1 parent
01f848b0
Exists in
master
and in
29 other branches
ActionItem313: adding missing partial
git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@1698 3f533792-8f58-4932-b0fe-aaf55b0a4547
Showing
1 changed file
with
44 additions
and
0 deletions
Show diff stats
... | ... | @@ -0,0 +1,44 @@ |
1 | +<% form_tag({:action => 'index', :category_path => (@category ? @category.explode_path : [])}, :method => 'get') do%> | |
2 | + | |
3 | + <div class="search-field"> | |
4 | + <span class="formfield"> | |
5 | + <%= text_field_tag 'query', @query, :id => 'popup-search-input', :size => 50 %> | |
6 | + <%= javascript_tag '$("popup-search-input").focus()' %> | |
7 | + </span> | |
8 | + <%= submit_button(:search, _('Search')) %> | |
9 | + </div> | |
10 | + | |
11 | + <% if @category %> | |
12 | + <h3><%= _('Search in:') %></h3> | |
13 | + <ul> | |
14 | + <li> | |
15 | + <%= radio_button_tag :search_whole_site, 'no', true %> | |
16 | + <span><%= _('Only in %{category}') % { :category => @category.full_name } %></span> | |
17 | + </li> | |
18 | + <li> | |
19 | + <%= radio_button_tag :search_whole_site, 'yes' %> | |
20 | + <span><%= _('Whole site') %></span> | |
21 | + </li> | |
22 | + </ul> | |
23 | + <% end %> | |
24 | + | |
25 | + <div class="search-options"> | |
26 | + <h3><%= _('Search for:') %></h3> | |
27 | + <ul> | |
28 | + <% @search_in.map { |t,n| [t,gettext(n)] } . | |
29 | + sort_by(&:last).each do |thing, name| %> | |
30 | + <li> | |
31 | + <%= check_box_tag 'find_in[]', thing.to_s, true %> | |
32 | + <span><%= name %></span> | |
33 | + </li> | |
34 | + <% end %> | |
35 | + </ul> | |
36 | + <br style="clear:both" /> | |
37 | + </div><!-- fim class="search-options" --> | |
38 | + | |
39 | + <% button_bar do %> | |
40 | + <%= submit_button(:search, _('Search')) %> | |
41 | + <%= lightbox_close_button(_('Close')) if lightbox? %> | |
42 | + <% end %> | |
43 | + | |
44 | +<% end %> | ... | ... |