You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

14 lines
596 B

<%= form_tag url_for(), method: :get, class: "search__collection", data: {turbo_stream: local_assigns[:turbo_stream]} do %>
<%= link_to 'close', params.permit(:sort, :reverse, :category, :tag), class: 'icon reset__search', data: {turbo_stream: local_assigns[:turbo_stream]} %>
<div>
<%= text_field_tag :q, params[:q], spellcheck: false, placeholder: t(:'ui.search') %>
<%= button_tag 'search', id: nil, name: nil, class: 'icon' %>
</div>
<%- [:sort, :reverse, :category, :tag].each do |k| -%>
<%= hidden_field_tag k, params[k] if params[k] %>
<% end %>
<%- end -%>