Sha256: ed9c7688bbdf625eb759b93d3b71f926a39928b0a372025916b35fdc826815aa
Contents?: true
Size: 1.05 KB
Versions: 34
Compression:
Stored size: 1.05 KB
Contents
<%- url ||= resource_url_proxy.url_for({ action: 'index' }.merge(search_filter_params.except(:q, :page))) -%> <%= search_form_for @query, url: url, class: 'search_form' do |f| %> <div class="search_field"> <button type="submit"> <%= render_icon('search') %> </button> <%= f.search_field resource_handler.search_field_name, class: 'search_input_field', placeholder: Alchemy.t(:search) %> <% local_assigns.fetch(:additional_query_fields, []).each do |field| %> <%= f.hidden_field field, id: nil %> <% end %> <%= link_to render_icon(:times, size: 'xs'), url, class: 'search_field_clear', id: 'search_field_clear', title: Alchemy.t(:click_to_show_all), style: search_filter_params.fetch(:q, {}).fetch(resource_handler.search_field_name, '').present? ? 'display: block' : 'display: none' %> <% local_assigns.fetch(:additional_params, []).each do |additional_param| %> <%= hidden_field_tag additional_param, search_filter_params[additional_param], id: nil %> <% end %> </div> <% end %>
Version data entries
34 entries across 34 versions & 1 rubygems