- title t('.title', :type => @content_type.name.capitalize)

- content_for :submenu do
  = render 'admin/shared/menu/contents'

- content_for :actions do
  = render 'admin/shared/actions/contents'

- content_for :head do
  = include_javascripts :contents

- content_for :buttons do
  - if can?(:manage, ContentType)
    = admin_button_tag :edit, edit_admin_content_type_url(@content_type), :class => 'edit'

  = admin_button_tag :new, new_admin_content_url(@content_type.slug), :class => 'new'

- if @content_type.description.present?
  %p= @content_type.description

- if @content_type.groupable?
  - @contents.each do |group|
    %h3= group[:name] || t('.category_noname')
    = render 'list', :contents => group[:items]
    %br
- else
  = render 'list', :contents => @contents

- if can?(:manage, ContentType)
  #local-actions-bottom-bar
    %p.tleft
      = link_to(content_tag(:em, escape_once(' ')) + t('.destroy'), admin_content_type_url(@content_type), :confirm => t('admin.messages.confirm'), :method => :delete, :class => 'button small remove')