Sha256: 0bf33a69662188487720433557c5373aea12066f01472e973c245be0c81d6a47
Contents?: true
Size: 755 Bytes
Versions: 12
Compression:
Stored size: 755 Bytes
Contents
<% if categories.present? %> <ul class="categories"> <%= hidden_field_tag "#{content.class.name.underscore}[category_ids][]", '' %> <% categories.each do |category| %> <li class="<%= cycle '', 'highlight', :name => 'content_categories' %>"> <%= check_box_tag "#{content.class.name.underscore}[category_ids][]", category.id, content.categories.include?(category), :id => "#{content.class.name.underscore}_category_#{category.id}" %> <label for="<%= content.class.name.underscore %>_category_<%= category.id %>" class="inline"><%= category.title %></label> <%= render :partial => 'categories/checkboxes', :locals => {:categories => category.children, :content => content} %> </li> <% end %> </ul> <% end %>
Version data entries
12 entries across 12 versions & 2 rubygems