From 4ab43ff52cfdec5e9c449fad9d90cbc29e71faea Mon Sep 17 00:00:00 2001 From: Gabriela Navarro Date: Mon, 25 May 2015 17:29:01 -0300 Subject: [PATCH] Fix search catalog divs(to help in design) --- views/search/_software_search_form.html.erb | 71 +++++++++++++++++++++++++++++++++++------------------------------------ 1 file changed, 35 insertions(+), 36 deletions(-) diff --git a/views/search/_software_search_form.html.erb b/views/search/_software_search_form.html.erb index ece863a..d3aba37 100644 --- a/views/search/_software_search_form.html.erb +++ b/views/search/_software_search_form.html.erb @@ -1,11 +1,13 @@ -
-

<%= _("Search Public Software Catalog") %>

+
+
+

<%= _("Search Public Software Catalog") %>

- <%= form_tag( { :controller => 'search', :action => @asset ? @asset : 'index', :asset => nil, :category_path => ( @category ? @category.path : nil ) }, - :method => 'get', :class => 'search_form' ) do %> + <%= form_tag( { :controller => 'search', :action => @asset ? @asset : 'index', :asset => nil, :category_path => ( @category ? @category.path : nil ) }, + :method => 'get', :class => 'search_form' ) do %>
-
+ +
<%= hidden_field_tag :display, params[:display] %> <%= hidden_field_tag :filter, params[:filter] %> @@ -18,43 +20,40 @@
<%= render :partial => 'search_form_extra_fields' %> <%= render :partial => 'catalog_filter' %> + <% end %> +
-
+
+
+ <%= "#{@software_count} Software(s)" %> +
-
-
- <%= "#{@software_count} Software(s)" %> +
+
+ Show: + <%= select_tag("software_display", + options_for_select(['15', '30', '90', 'All'], :selected=>params[:display]) + ) %>
-
-
- Show: - <%= select_tag("software_display", - options_for_select(['15', '30', '90', 'All'], :selected=>params[:display]) - ) %> -
- -
- Sort by: - <%= select_tag("sort", - options_for_select( - [ - [_("Name A-Z"), 'asc'], - [_("Name Z-A"), 'desc'], - [_("Relevance"), 'relevance'] +
+ Sort by: + <%= select_tag("sort", + options_for_select( + [ + [_("Name A-Z"), 'asc'], + [_("Name Z-A"), 'desc'], + [_("Relevance"), 'relevance'] ], :selected=>params[:sort]) - ) %> -
+ ) %>
- <% end %> +
+
- <% if @empty_query %> - <% hint = environment.search_hints[@asset] %> - <% if hint and !hint.blank? %> -
<%= hint %>
- <% end %> +<% if @empty_query %> + <% hint = environment.search_hints[@asset] %> + <% if hint and !hint.blank? %> +
<%= hint %>
<% end %> - -
-
+<% end %> -- libgit2 0.21.2