Sha256: fdfbbbdd6a0db04a604ab25c6cd5613d51c909e553bc0f98b3cc1bfcd2aa913e
Contents?: true
Size: 578 Bytes
Versions: 35
Compression:
Stored size: 578 Bytes
Contents
<% object = form.object %> <% if (categories = Cms::Category.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
35 entries across 35 versions & 1 rubygems