Sha256: 8dac0c7d33747e712c8992cadd74e1dbb177782ad455a199630c73e58bf6b048
Contents?: true
Size: 549 Bytes
Versions: 12
Compression:
Stored size: 549 Bytes
Contents
- object = form.object - if (categories = @site.categories.of_type(object.class.to_s)).present? = form.form_group :label => {:text => t('.label')}, :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
12 entries across 12 versions & 1 rubygems