Files
nairobi/app/views/shared/_search_form_header.html.erb
kikito c44e709f24 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
2015-09-12 18:32:13 +02:00

27 lines
735 B
Plaintext

<% # Params:
#
# i18n_namespace: for example "debates.index.search_form"
# search_path: for example debates_path
%>
<div class="search-form">
<div class="row">
<%= form_tag search_path, method: :get do %>
<div class="small-12 columns">
<div class="row collapse">
<div class="small-10 column">
<input type="text" name="search" placeholder="<%= t("#{i18n_namespace}.placeholder") %>" class="search-form">
</div>
<div class="small-2 column">
<button type="submit" class="button postfix" title="<%= t("#{i18n_namespace}.button") %>">
<i class="icon-search"></i>
</button>
</div>
</div>
</div>
<% end %>
</div>
</div>