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

<%= render partial: 'form' %>

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

<% @post_types.decorate.each do |item| %> <% end %>
<%= 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') %>
<%= item.the_title %> <%= item.the_content %> <%= item.the_slug %> <%= item.the_posts.count %> <%= link_to raw(''), item.the_url, class: "btn btn-primary btn-xs", title: "#{t('camaleon_cms.common.visit')}", target: '_blank' %> <%= 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_item') }, 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 @post_types.empty? %> <%= raw cama_do_pagination(@post_types) %>