Sha256: e43c3943023dec26573128c98d7f6857cb0350bdc40db8311b836122f5e6b46a
Contents?: true
Size: 793 Bytes
Versions: 13
Compression:
Stored size: 793 Bytes
Contents
<% # headmin/filters/search # # ==== Required parameters # * +attribute+ - Name of the attribute to be filtered # * +form+ - Form object # ==== Optional parameters # * +name+ - Name of the filter parameter # * +label+ - Name of the resource to be used in the placeholder (search in ...) # * +placeholder+ - Placeholder in the search field # # ==== Examples # Basic version. # <%= render "headmin/filters", url: admin_orders_path do |form| %#> # <%= render "headmin/filters/search", attribute: :search, label: Poll.model_name.human(count: 2) %#> # <% end %#> search = Headmin::Filter::SearchView.new(local_assigns.merge(params: params)) %> <% content_for :filters_search do %> <%= render "headmin/forms/search", search.input_options %> <% end %>
Version data entries
13 entries across 13 versions & 1 rubygems