Skip to content

Commit

Permalink
[webui] move bug issue search next to search field. Since they can be…
Browse files Browse the repository at this point in the history
… combined, but also used alone.
  • Loading branch information
adrianschroeter committed Aug 8, 2013
1 parent f1f00cf commit 0b9e630
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
7 changes: 2 additions & 5 deletions src/webui/app/views/search/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
<p>
<%= text_field_tag 'search_text', params[:search_text], :placeholder => 'Search', :id => 'search_input' -%>
<%= submit_tag(nil, :id => 'search_button', :title => 'Search') %>
<%= select_tag :issue_tracker, options_for_select(@issue_tracker_list, params[:issue_tracker] || @default_tracker) %>
<%= text_field_tag 'issue', params[:issue], :size => 10 -%>
<button type="button" id="advanced_link">Advanced</button>
</p>
<div id="advanced_container" style="display: none;">
Expand Down Expand Up @@ -77,11 +79,6 @@
<p>
<%= select_tag :attrib_type_id, options_for_select(@attrib_type_list, params[:attrib_type_id]), :id => 'attribute_list' %>
</p>
<h4>Require issue:</h4>
<p>
<%= select_tag :issue_tracker, options_for_select(@issue_tracker_list, params[:issue_tracker] || @default_tracker) %>
<%= text_field_tag 'issue', params[:issue], :size => 10 -%>
</p>
</div> <!-- end advanced_container -->
<% end %>
</div> <!-- end search_form -->
Expand Down
2 changes: 1 addition & 1 deletion src/webui/config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@
post 'request/set_incident' => :set_incident
get 'request/comments/:id' => :comments
post 'request/comments/:id' => :save_comments
end
end

controller :search do
match 'search' => :index, via: [:get, :post]
Expand Down

0 comments on commit 0b9e630

Please sign in to comment.