2011-12-22 22:28:12 +00:00
|
|
|
- title t('.title', :type => @content_type.name.capitalize)
|
2010-05-25 00:32:12 +00:00
|
|
|
|
|
|
|
- content_for :submenu do
|
2011-11-08 00:11:15 +00:00
|
|
|
= render 'locomotive/shared/menu/contents'
|
2011-08-11 20:45:46 +00:00
|
|
|
|
2011-04-27 05:18:02 +00:00
|
|
|
- content_for :actions do
|
2011-11-08 00:11:15 +00:00
|
|
|
= render 'locomotive/shared/actions/contents'
|
2010-07-23 23:51:43 +00:00
|
|
|
|
2011-11-08 14:34:25 +00:00
|
|
|
- if can?(:manage, Locomotive::ContentType)
|
2011-06-26 00:01:11 +00:00
|
|
|
- content_for :buttons do
|
2011-12-22 23:45:32 +00:00
|
|
|
= local_action_button t('locomotive.content_entries.index.edit'), edit_content_type_url(@content_type), :class => 'edit'
|
2010-07-23 23:51:43 +00:00
|
|
|
|
2010-05-25 00:32:12 +00:00
|
|
|
%p= @content_type.description
|
|
|
|
|
2012-01-02 13:54:01 +00:00
|
|
|
= semantic_form_for @content_entry, :as => :content_entry, :url => content_entries_url(@content_type.slug), :html => { :multipart => true } do |form|
|
2010-05-25 00:32:12 +00:00
|
|
|
|
|
|
|
= render 'form', :f => form
|
2010-07-23 23:51:43 +00:00
|
|
|
|
2011-12-22 23:45:32 +00:00
|
|
|
= render 'locomotive/shared/form_actions', :back_url => content_entries_url(@content_type.slug), :button_label => :create
|