Improved bootstrap-style search form

This commit is contained in:
Christoph Haas 2013-08-09 23:30:55 +02:00
parent 60a9bd213d
commit d4b82892d5

View file

@ -1,11 +1,17 @@
<h1>Search for a package/description:</h1>
<%= form_tag(url_for, method: "get") do %>
<%= text_field_tag :search, params[:search], autofocus: true, placeholder: 'What are you looking for...' %>
|
With screenshots? <%= check_box_tag 'with_screenshots', 'yes', params[:with_screenshots] %>
|
<%= submit_tag "Search" %>
<%= form_tag(url_for, method: "get", class: "form-search") do %>
<div class="input-append">
<%= text_field_tag :search, params[:search], autofocus: true, placeholder: 'What are you looking for...', class: "search-query" %>
<button class="btn" type="submit">Search!</button>
</div>
<label class="checkbox">
<%= check_box_tag 'with_screenshots', 'yes', params[:with_screenshots] %>
Show only packages with screenshots
</label>
<% end %>
<div class="container">