engine/app/views/locomotive/contents_entries/edit.html.haml

21 lines
865 B
Plaintext

- title t('.title', :type => @content_type.name.capitalize)
- content_for :submenu do
= render 'locomotive/shared/menu/contents'
- content_for :actions do
= render 'locomotive/shared/actions/contents'
- content_for :buttons do
- if can?(:manage, Locomotive::ContentType)
= local_action_button t('locomotive.content_entries.index.edit'), edit_content_type_url(@content_type), :class => 'edit'
= local_action_button t('locomotive.content_entries.index.new'), new_content_entry_url(@content_type.slug), :class => 'new'
%p= @content_type.description
= semantic_form_for @content, :as => :content, :url => content_entry_url(@content_type.slug, @content), :html => { :multipart => true } do |form|
= render 'form', :f => form
= render 'locomotive/shared/form_actions', :back_url => content_entries_url(@content_type.slug), :button_label => :update