2010-05-25 00:32:12 +00:00
|
|
|
- title t('.title', :type => @content_type.name.capitalize)
|
2010-05-24 00:18:23 +00:00
|
|
|
|
|
|
|
- content_for :submenu do
|
|
|
|
= render 'admin/shared/menu/contents'
|
2010-07-23 23:57:18 +00:00
|
|
|
|
2010-05-25 00:32:12 +00:00
|
|
|
- content_for :head do
|
2010-12-14 17:00:12 +00:00
|
|
|
= include_javascripts :contents
|
2010-07-23 23:57:18 +00:00
|
|
|
|
2010-05-24 00:18:23 +00:00
|
|
|
- content_for :buttons do
|
|
|
|
= 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'
|
|
|
|
|
2010-07-23 23:57:18 +00:00
|
|
|
- if @content_type.description.present?
|
2010-05-24 00:18:23 +00:00
|
|
|
%p= @content_type.description
|
|
|
|
|
2010-06-16 14:43:29 +00:00
|
|
|
- if @content_type.groupable?
|
2010-07-23 23:57:18 +00:00
|
|
|
- @contents.each do |group|
|
2010-06-16 14:43:29 +00:00
|
|
|
%h3= group[:name] || t('.category_noname')
|
2010-07-23 23:57:18 +00:00
|
|
|
= render 'list', :contents => group[:items]
|
2010-06-16 14:43:29 +00:00
|
|
|
%br
|
2010-05-24 00:18:23 +00:00
|
|
|
- else
|
2010-06-16 14:43:29 +00:00
|
|
|
= render 'list', :contents => @contents
|
2010-07-23 23:57:18 +00:00
|
|
|
|
2010-05-25 00:32:12 +00:00
|
|
|
= form_tag sort_admin_contents_path(@content_type.slug), :method => :put, :class => 'formtastic' do
|
|
|
|
= hidden_field_tag :order
|
|
|
|
|
2010-07-13 20:01:40 +00:00
|
|
|
= render 'admin/shared/form_actions', :delete_button => 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'), :button_label => :update
|