From d4b82892d5ef45fbdb20336d6d93f72f390dab77 Mon Sep 17 00:00:00 2001 From: Christoph Haas Date: Fri, 9 Aug 2013 23:30:55 +0200 Subject: [PATCH] Improved bootstrap-style search form --- app/views/packages/index.html.erb | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/app/views/packages/index.html.erb b/app/views/packages/index.html.erb index 0cd7ebd..dce233a 100644 --- a/app/views/packages/index.html.erb +++ b/app/views/packages/index.html.erb @@ -1,11 +1,17 @@

Search for a package/description:

-<%= 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 %> +
+ <%= text_field_tag :search, params[:search], autofocus: true, placeholder: 'What are you looking for...', class: "search-query" %> + +
+ + + + <% end %>