Sha256: 33bcfad60e3e302e329b85ab1ce99a98375283bebd56be2a08fd1b3eaf96b678

Contents?: true

Size: 799 Bytes

Versions: 10

Compression:

Stored size: 799 Bytes

Contents

<%
  # headmin/filters/association
  #
  # ==== Required parameters
  # * +attribute+ - Name of the attribute to be filtered
  # * +collection+ - Values to create option tags for
  # * +form+ - Form object
  #
  # ==== Optional parameters
  # * +label+ - Display label
  # * +name+ - Name of the filter parameter
  #
  # ==== Examples
  #   Basic version
  #   <%= render "headmin/filters", url: admin_orders_path do |form| %#>
  #     <%= render "headmin/filters/association", form: form, attribute: :product %#>
  #   <% end  %#>

  association = Headmin::Filter::AssociationView.new(local_assigns.merge(params: params))
%>

<%= render "headmin/filters/base", association.base_options do |value| %>
  <%= render "headmin/forms/select", association.input_options.merge(selected: value) %>
<% end %>

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
headmin-0.6.3 app/views/headmin/filters/_association.html.erb
headmin-0.6.2 app/views/headmin/filters/_association.html.erb
headmin-0.6.1 app/views/headmin/filters/_association.html.erb
headmin-0.6.0 app/views/headmin/filters/_association.html.erb
headmin-0.5.9 app/views/headmin/filters/_association.html.erb
headmin-0.5.8 app/views/headmin/filters/_association.html.erb
headmin-0.5.7 app/views/headmin/filters/_association.html.erb
headmin-0.5.6 app/views/headmin/filters/_association.html.erb
headmin-0.5.5 app/views/headmin/filters/_association.html.erb
headmin-0.5.4 app/views/headmin/filters/_association.html.erb