Sha256: a9432c0e337cca1b4ba35d95a48c5e04bc14d801924d6ab50a6592e80bacbe2e
Contents?: true
Size: 581 Bytes
Versions: 19
Compression:
Stored size: 581 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.downcase}[category_ids][#{category.id}]", 0, :id => nil %> <label> <%= check_box_tag "#{object.class.to_s.demodulize.downcase}[category_ids][#{category.id}]", 1, object.categories.member?(category), :id => nil %> <%= category.label %> </label> <% end %> <% end %> <% end %>
Version data entries
19 entries across 19 versions & 1 rubygems