Sha256: 733b8860d4c9226988f47241fa03a71af3d03ef9c1b4d505a9e360466220ebc5

Contents?: true

Size: 703 Bytes

Versions: 11

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

11 entries across 11 versions & 1 rubygems

Version Path
headmin-0.6.1 app/views/headmin/filters/_date.html.erb
headmin-0.6.0 app/views/headmin/filters/_date.html.erb
headmin-0.5.9 app/views/headmin/filters/_date.html.erb
headmin-0.5.8 app/views/headmin/filters/_date.html.erb
headmin-0.5.7 app/views/headmin/filters/_date.html.erb
headmin-0.5.6 app/views/headmin/filters/_date.html.erb
headmin-0.5.5 app/views/headmin/filters/_date.html.erb
headmin-0.5.4 app/views/headmin/filters/_date.html.erb
headmin-0.5.3 app/views/headmin/filters/_date.html.erb
headmin-0.5.1 app/views/headmin/filters/_date.html.erb
headmin-0.5.0 app/views/headmin/filters/_date.html.erb