<%= l(:label_search) %>

<% form_tag({}, :method => :get) do %>

<%= text_field_tag 'q', @question, :size => 30, :id => 'search-input' %> <%= javascript_tag "Field.focus('search-input')" %> <% if @project %> <%= check_box_tag 'scope[]', 'issues', (@scope.include? 'issues') %> <% if @project.repository %> <%= check_box_tag 'scope[]', 'changesets', (@scope.include? 'changesets') %> <% end %> <%= check_box_tag 'scope[]', 'news', (@scope.include? 'news') %> <%= check_box_tag 'scope[]', 'documents', (@scope.include? 'documents') %> <% if @project.wiki %> <%= check_box_tag 'scope[]', 'wiki', (@scope.include? 'wiki') %> <% end %> <% if @project.boards.any? %> <%= check_box_tag 'scope[]', 'messages', (@scope.include? 'messages') %> <% end %> <% else %> <%= check_box_tag 'scope[]', 'projects', (@scope.include? 'projects') %> <% end %>
<%= check_box_tag 'all_words', 1, @all_words %> <%= l(:label_all_words) %>

<%= submit_tag l(:button_submit), :name => 'submit' %> <% end %>
<% if @results %>

<%= lwr(:label_result, @results.length) %>

<% end %>