From c275f3e52d965aa84c974b53e2297914e62d9694 Mon Sep 17 00:00:00 2001 From: Christoph Haas Date: Thu, 22 Aug 2013 00:13:37 +0200 Subject: [PATCH] Trying to get look right for forms using Bootstrap 3.0 --- .../_packages_search_results.html.erb | 14 ++--- app/views/packages/index.html.erb | 61 +++++-------------- 2 files changed, 20 insertions(+), 55 deletions(-) diff --git a/app/views/packages/_packages_search_results.html.erb b/app/views/packages/_packages_search_results.html.erb index d5e15c9..f489884 100644 --- a/app/views/packages/_packages_search_results.html.erb +++ b/app/views/packages/_packages_search_results.html.erb @@ -2,18 +2,15 @@ <% if @packages.length>0 %> <%= paginate @packages %> - <% end %> - - diff --git a/app/views/packages/index.html.erb b/app/views/packages/index.html.erb index 133c86a..614880f 100644 --- a/app/views/packages/index.html.erb +++ b/app/views/packages/index.html.erb @@ -1,4 +1,4 @@ - - - -

Search for a package/description:

+ <%= form_tag(url_for, method: "get", class: "form-search") do %> +
- <%= 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" %> @@ -70,28 +51,18 @@ -
- -
-
- - - - -
-
+
+
-
+
<% end %>