2010-05-25 00:32:12 +00:00
|
|
|
- title t('.title', :type => @content_type.name.capitalize)
|
2011-04-27 05:18:02 +00:00
|
|
|
|
2010-05-25 00:32:12 +00:00
|
|
|
- content_for :submenu do
|
|
|
|
= render 'admin/shared/menu/contents'
|
2011-04-27 05:18:02 +00:00
|
|
|
|
|
|
|
- content_for :actions do
|
|
|
|
= render 'admin/shared/actions/contents'
|
2010-05-25 00:32:12 +00:00
|
|
|
|
2010-07-23 23:57:18 +00:00
|
|
|
- content_for :buttons do
|
2010-05-25 00:32:12 +00:00
|
|
|
= admin_button_tag t('admin.contents.index.edit'), edit_admin_content_type_url(@content_type), :class => 'edit'
|
2010-05-26 00:41:10 +00:00
|
|
|
= admin_button_tag t('admin.contents.index.new'), new_admin_content_url(@content_type.slug), :class => 'new'
|
2010-05-25 00:32:12 +00:00
|
|
|
|
|
|
|
%p= @content_type.description
|
|
|
|
|
2010-07-13 20:01:40 +00:00
|
|
|
= semantic_form_for @content, :as => :content, :url => admin_content_url(@content_type.slug, @content), :html => { :multipart => true, :class => 'save-with-shortcut' } do |form|
|
2010-05-25 00:32:12 +00:00
|
|
|
|
|
|
|
= render 'form', :f => form
|
|
|
|
|
|
|
|
= render 'admin/shared/form_actions', :back_url => admin_contents_url(@content_type.slug), :button_label => :update
|