Sha256: 94ee4b24aca893875008543cbc110fae6124349a4056b9aa98733af5efd83576
Contents?: true
Size: 604 Bytes
Versions: 10
Compression:
Stored size: 604 Bytes
Contents
<% object = form.object %> <% if (categories = @site.categories.of_type(object.class.to_s)).present? %> <%= form.simple_field t('.label'), nil, :class => 'categories' do %> <% categories.each do |category| %> <%= hidden_field_tag "#{object.class.to_s.demodulize.underscore.downcase}[category_ids][#{category.id}]", 0, :id => nil %> <label> <%= check_box_tag "#{object.class.to_s.demodulize.underscore.downcase}[category_ids][#{category.id}]", 1, object.categories.member?(category), :id => nil %> <%= category.label %> </label> <% end %> <% end %> <% end %>
Version data entries
10 entries across 10 versions & 1 rubygems