Refactors search form

It only appears when the page asks for it.
Also, the i18n namespace and the path used for the form are parameters
now
This commit is contained in:
kikito
2015-09-12 18:32:13 +02:00
parent 3bcea097c6
commit c44e709f24
6 changed files with 35 additions and 17 deletions

View File

@@ -1,3 +1,9 @@
<% content_for :header_addon do %>
<%= render "shared/search_form_header",
search_path: debates_path(page: 1),
i18n_namespace: "debates.index.search_form" %>
<% end %>
<section role="main">
<div class="wrap row">