Improved bootstrap-style search form
This commit is contained in:
parent
60a9bd213d
commit
d4b82892d5
1 changed files with 12 additions and 6 deletions
|
|
@ -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">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue