engine/app/views/locomotive/content_entries/_form.html.haml

18 lines
674 B
Plaintext
Raw Normal View History

- content_for :head do
= render '/locomotive/content_assets/picker'
- content_for :backbone_view_data do
:plain
{ content_entry: #{@content_entry.to_json} }
= f.inputs :name => :attributes do
- @content_type.ordered_entries_custom_fields.each_with_index do |field, index|
= render "locomotive/custom_fields/types/#{field.type}", :f => f, :name => field.name.to_sym, :field => field, :highlighted => field._id == @content_type.label_field_id
= f.inputs :name => :advanced_options, :class => "inputs foldable #{'folded' if inputs_folded?(@content_entry)}" do
= f.input :_slug
= f.input :seo_title
= f.input :meta_keywords
= f.input :meta_description