Sha256: 0ab9ae374da15c42a072a81eeb0fa3e97a29325bf79ef747d1999371a2176772

Contents?: true

Size: 716 Bytes

Versions: 13

Compression:

Stored size: 716 Bytes

Contents

<%
  # headmin/filters/number
  #
  # ==== Required parameters
  # * +attribute+ - Name of the attribute to be filtered
  # * +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/number", form: form, attribute: :beverages %#>
  #   <% end  %#>

  number = Headmin::Filter::NumberView.new(local_assigns.merge(params: params))
%>

<%= render "headmin/filters/base", number.base_options do |value| %>
  <%= render "headmin/forms/number", number.input_options.merge({value: value}) %>
<% end %>

Version data entries

13 entries across 13 versions & 1 rubygems

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