Sha256: ba7e6331447c2fbcfa4f308da525b089cdef922f3d4bb12fd32ecd51e450174c
Contents?: true
Size: 999 Bytes
Versions: 2
Compression:
Stored size: 999 Bytes
Contents
<% # headmin/filters/association_count # # ==== Required parameters # * +association+ - Name of the association that has to be counted # * +form+ - Form object # # ==== Optional parameters # * +label+ - Display label # * +name+ - Name of the filter parameter # # ==== Examples # Basic version (one-to-many) # <%= render "headmin/filters", url: admin_orders_path do |form| %#> # <%= render "headmin/filters/association_count", form: form, association: :beverages %#> # <% end %#> # # Basic version (one-to-one) # <%= render "headmin/filters", url: admin_orders_path do |form| %#> # <%= render "headmin/filters/association_count", form: form, association: :beverage %#> # <% end %#> number = Headmin::Filter::AssociationCountView.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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
headmin-0.6.3 | app/views/headmin/filters/_association_count.html.erb |
headmin-0.6.2 | app/views/headmin/filters/_association_count.html.erb |