Sha256: 16433ebea677b7e30542c3bdc78d4a80bd28893212a7b7114cfd844c8466bf19

Contents?: true

Size: 793 Bytes

Versions: 1

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

1 entries across 1 versions & 1 rubygems

Version Path
headmin-0.5.2 app/views/headmin/filters/_search.html.erb