<%= t('camaleon_cms.admin.post_type.add_category')%>

<%= render partial: 'form' %>

<%= "#{@post_type.decorate.the_title.pluralize} / " if @post_type.present? %> <%= t('camaleon_cms.admin.post_type.category').to_s.titleize.pluralize %>

<%= r = {html: "", post_type: @post_type}; hooks_run("category_list_header", r); raw(r[:html]); %> <% def _item_html(item, pos = 0) item = item.decorate %> <%= r = {html: "", post_type: @post_type, category: item}; hooks_run("category_list_body", r); raw(r[:html]); %> <% end def _render_categories(categories, _level = 0) categories.each do |term| _item_html(term, _level) children = term.children _render_categories(children, _level + 1) if children.size > 0 end end _render_categories(@categories) %>
<%= t('camaleon_cms.admin.table.name')%> <%= t('camaleon_cms.admin.table.description')%> <%= t('camaleon_cms.admin.table.slug')%> <%= t('camaleon_cms.admin.table.qty')%><%= t('camaleon_cms.admin.table.actions')%>
<%= raw('—' * pos) %> <%= item.the_title %> <%= item.the_content %> <%= item.the_slug %> <%= item.count %> <%= link_to raw(''), cama_admin_post_type_taxonomy_posts_path(@post_type.id, "category", item.id), class: "btn btn-default btn-xs cama_ajax_request", title: "#{@post_type.decorate.the_title.pluralize} - #{item.the_title.to_s.titleize}" if @post_type.present? && (can? :posts, @post_type) %> <%= link_to raw(''), {action: :edit, id: item.id }, class: "btn btn-default btn-xs cama_ajax_request", title: "#{t('camaleon_cms.admin.button.edit')}" %> <%= link_to raw(''), { action: :destroy, id: item.id },method: :delete, data: { confirm: t('camaleon_cms.admin.message.delete') }, class: "btn btn-danger btn-xs cama_ajax_request", title: "#{t('camaleon_cms.admin.button.delete')}" unless item.get_option('not_deleted', false) %>
<%= content_tag("div", raw(t('camaleon_cms.admin.message.data_found_list')), class: "alert alert-warning") if @categories.empty? %> <%= raw cama_do_pagination(@categories) %>