Sha256: 3ed3175b5407c0808fd02cc8cc30cec14aed6dc5f935b7f937317ebd96411174
Contents?: true
Size: 703 Bytes
Versions: 1
Compression:
Stored size: 703 Bytes
Contents
<% # headmin/filters/date # # ==== 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/date', form: form, attribute: :created_at %#> # <% end %#> date = Headmin::Filter::DateView.new(local_assigns.merge(params: params)) %> <%= render 'headmin/filters/base', date.base_options do |value| %> <%= render 'headmin/forms/date', date.input_options.merge({value: value}) %> <% end %>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
headmin-0.5.2 | app/views/headmin/filters/_date.html.erb |