<%= t('admin.post_type.add_post_type') %>

<%= render partial: 'form' %>

<%= t('admin.post_type.post_types') %>

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