Sha256: 433b0e77a5f9302e27dd4c367caa38c7f1f13922da52eeb7c2fb17d10974fb66

Contents?: true

Size: 716 Bytes

Versions: 1

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

1 entries across 1 versions & 1 rubygems

Version Path
headmin-0.5.2 app/views/headmin/filters/_number.html.erb