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

Version Path
adva-0.2.4 app/views/categories/_checkboxes.html.erb
adva-0.2.3 app/views/categories/_checkboxes.html.erb
adva-0.2.2 app/views/categories/_checkboxes.html.erb
adva-0.2.1 app/views/categories/_checkboxes.html.erb
adva-0.2.0 app/views/categories/_checkboxes.html.erb
adva-0.1.4 app/views/categories/_checkboxes.html.erb
adva-0.1.3 app/views/categories/_checkboxes.html.erb
adva-0.1.2 app/views/categories/_checkboxes.html.erb
adva-0.1.1 app/views/categories/_checkboxes.html.erb
adva-0.1.0 app/views/categories/_checkboxes.html.erb
adva_cms-0.0.1 app/views/categories/_checkboxes.html.erb
adva-0.0.1 adva_cms/app/views/categories/_checkboxes.html.erb