Sha256: c5b35ecd0312e194ce870363b4c8b8c9d2c856fcfce4009fad502c7698a745dd
Contents?: true
Size: 530 Bytes
Versions: 22
Compression:
Stored size: 530 Bytes
Contents
- object = form.object - if (categories = @site.categories.of_type(object.class.to_s)).present? = form.element 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.checkbox.inline = check_box_tag "#{object.class.to_s.demodulize.underscore.downcase}[category_ids][#{category.id}]", 1, object.categories.member?(category), :id => nil = category.label
Version data entries
22 entries across 22 versions & 2 rubygems