engine/app/views/locomotive/content_entries/_form.html.haml
Didier Lafforgue 662e359acb fix issue #393
2012-05-24 19:19:46 +02:00

22 lines
733 B
Plaintext

- content_for :head do
= render '/locomotive/content_assets/picker'
- content_for :backbone_view_data do
:plain
content_entry: #{j @content_entry.to_json.html_safe}
= 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