Sha256: 726b295f9cdc4fb69d32ffcd0ac71344ed09afecfc806004fb6fd517b51dbc91
Contents?: true
Size: 723 Bytes
Versions: 1
Compression:
Stored size: 723 Bytes
Contents
<% # headmin/filters/boolean # # ==== Required parameters # * +attribute+ - Name of the attribute to be filtered # * +form+ - Form object # # ==== Optional parameters # * +name+ - Name of the filter parameter # * +label+ - Display label # # ==== Examples # Basic version # <%= render 'headmin/filters', url: admin_orders_path do |form| %#> # <%= render 'headmin/filters/boolean', form: form, attribute: :published %#> # <% end %#> boolean = Headmin::Filter::BooleanView.new(local_assigns.merge(params: params)) %> <%= render 'headmin/filters/base', boolean.base_options do |value| %> <%= render 'headmin/forms/select', boolean.input_options.merge(selected: value) %> <% end %>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
headmin-0.5.2 | app/views/headmin/filters/_boolean.html.erb |