Commit 5dfdffeb99aae7fdf0441f0efb9ab6e66a3eb3bf
1 parent
c16f5ff8
Fix search catalog divs(to help in design)
Showing
1 changed file
with
20 additions
and
19 deletions
Show diff stats
views/search/_software_search_form.html.erb
| 1 | -<div class='search-form'> | ||
| 2 | - <h3> <%= _("Search Public Software Catalog") %> </h3> | 1 | +<div> |
| 2 | + <div class='search-form'> | ||
| 3 | + <h3> <%= _("Search Public Software Catalog") %> </h3> | ||
| 3 | 4 | ||
| 4 | - <%= form_tag( { :controller => 'search', :action => @asset ? @asset : 'index', :asset => nil, :category_path => ( @category ? @category.path : nil ) }, | ||
| 5 | - :method => 'get', :class => 'search_form' ) do %> | 5 | + <%= form_tag( { :controller => 'search', :action => @asset ? @asset : 'index', :asset => nil, :category_path => ( @category ? @category.path : nil ) }, |
| 6 | + :method => 'get', :class => 'search_form' ) do %> | ||
| 6 | 7 | ||
| 7 | - <div style="margin:0;padding:0;display:inline"> | ||
| 8 | - <input name="utf8" type="hidden" value="✓" /></div> | ||
| 9 | - <%= hidden_field_tag :display, params[:display] %> | ||
| 10 | - <%= hidden_field_tag :filter, params[:filter] %> | 8 | + <div style="margin:0;padding:0;display:inline"> |
| 9 | + <input name="utf8" type="hidden" value="✓" /></div> | ||
| 10 | + <%= hidden_field_tag :display, params[:display] %> | ||
| 11 | + <%= hidden_field_tag :filter, params[:filter] %> | ||
| 11 | 12 | ||
| 12 | - <div class="search-field"> | ||
| 13 | - <span class="formfield"> | ||
| 14 | - <%= text_field_tag 'query', @query, :id => 'search-input', :size => 50, :placeholder=>_("Type words about the software_info you're looking for (the search begins after 3 characters)") %> | ||
| 15 | - </span> | ||
| 16 | - | ||
| 17 | - <%= submit_button(:search, _('Filter')) %> | ||
| 18 | - </div> | ||
| 19 | - <%= render :partial => 'search_form_extra_fields' %> | ||
| 20 | - <%= render :partial => 'catalog_filter' %> | 13 | + <div class="search-field"> |
| 14 | + <span class="formfield"> | ||
| 15 | + <%= text_field_tag 'query', @query, :id => 'search-input', :size => 50, :placeholder=>_("Type words about the software_info you're looking for (the search begins after 3 characters)") %> | ||
| 16 | + </span> | ||
| 21 | 17 | ||
| 18 | + <%= submit_button(:search, _('Filter')) %> | ||
| 19 | + </div> | ||
| 20 | + <%= render :partial => 'search_form_extra_fields' %> | ||
| 21 | + <%= render :partial => 'catalog_filter' %> | ||
| 22 | + <% end %> | ||
| 23 | + </div> | ||
| 22 | <br /> | 24 | <br /> |
| 23 | 25 | ||
| 24 | <div id="catalog-display-options"> | 26 | <div id="catalog-display-options"> |
| @@ -47,7 +49,7 @@ | @@ -47,7 +49,7 @@ | ||
| 47 | </div> | 49 | </div> |
| 48 | </div> | 50 | </div> |
| 49 | </div> | 51 | </div> |
| 50 | - <% end %> | 52 | +</div> |
| 51 | 53 | ||
| 52 | <% if @empty_query %> | 54 | <% if @empty_query %> |
| 53 | <% hint = environment.search_hints[@asset] %> | 55 | <% hint = environment.search_hints[@asset] %> |
| @@ -57,4 +59,3 @@ | @@ -57,4 +59,3 @@ | ||
| 57 | <% end %> | 59 | <% end %> |
| 58 | 60 | ||
| 59 | <div style="clear: both"></div> | 61 | <div style="clear: both"></div> |
| 60 | -</div> |