Allow custom options in search form component

So we keep the same API as the form_tag method.
This commit is contained in:
Javi Martín
2020-12-03 16:19:57 +01:00
parent 9b073599f0
commit a9427f5971
2 changed files with 8 additions and 3 deletions

View File

@@ -1,4 +1,4 @@
<%= form_tag(url, method: :get, role: "search") do |f| %>
<%= form_tag(url, options) do |f| %>
<%= text_field_tag :search, search_terms.to_s, placeholder: label, "aria-label": label %>
<%= submit_tag t("admin.shared.search.search") %>
<% end %>