engine/app/views/locomotive/contents/new.html.haml

22 lines
824 B
Plaintext

- if breadcrumb_root
- title t('.title.breadcrumb', :root => link_to(breadcrumb_root._label, breadcrumb_url), :type => @content_type.name.capitalize)
- else
- title t('.title.default', :type => @content_type.name.capitalize)
- content_for :submenu do
= render 'admin/shared/menu/contents'
- content_for :actions do
= render 'admin/shared/actions/contents'
- if can?(:manage, ContentType)
- content_for :buttons do
= admin_button_tag t('locomotive.contents.index.edit'), edit_content_type_url(@content_type), :class => 'edit'
%p= @content_type.description
= semantic_form_for @content, :as => :content, :url => contents_url(@content_type.slug), :html => { :multipart => true } do |form|
= render 'form', :f => form
= render 'admin/shared/form_actions', :back_url => back_url, :button_label => :create