Sha256: f8c0ddd24480033f03585dfc5738e71092731203ba901f52f06b14cb6f3f40bb

Contents?: true

Size: 1.78 KB

Versions: 6

Compression:

Stored size: 1.78 KB

Contents

- content_for :head do
  = render 'locomotive/custom_fields/form', :f => f

- content_for :backbone_view_data do
  :plain
    content_type: #{@content_type.persisted? ? @content_type.to_json : 'null'},
    inverse_of_list: #{options_for_content_type_inverse_of.to_json}

= f.inputs :name => :information do

  = f.input :name, :wrapper_html => { :class => 'highlighted' }

  = f.input :slug

  = f.input :description

= f.inputs :name => :custom_fields, :class => "inputs foldable" do

  = f.input :entries_custom_fields, :as => :'Locomotive::Empty', :label => false, :wrapper_html => { :id => 'custom_fields_input' }

- if @content_type.persisted?

  = f.inputs :name => :presentation, :class => "inputs foldable #{'folded' if inputs_folded?(@content_type)}" do

    = f.input :label_field_id, :as => :select, :collection => options_for_label_field(@content_type), :include_blank => false

    = f.input :group_by_field_id, :as => :select, :collection => options_for_group_by_field(@content_type)

    = f.input :raw_item_template, :as => :'Locomotive::SmallCode'

  = f.inputs :name => :options, :class => "inputs foldable #{'folded' if inputs_folded?(@content_type)}" do

    = f.input :order_by, :as => :select, :collection => options_for_order_by(@content_type), :include_blank => false

    = f.input :order_direction, :as => :select, :collection => options_for_order_direction, :include_blank => false, :wrapper_html => { :style => "#{'display: none' if @content_type.order_manually?}" }

    = f.input :public_submission_enabled, :as => :'Locomotive::Toggle'

    = f.input :public_submission_accounts, :as => :select, :collection => options_for_account, :include_blank => false, :multiple => true, :wrapper_html => { :class => 'multiple', :style => (@content_type.public_submission_enabled? ? '' : 'display: none') }

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
locomotive_cms-2.0.0.rc7 app/views/locomotive/content_types/_form.html.haml
locomotive_cms-2.0.0.rc6 app/views/locomotive/content_types/_form.html.haml
locomotive_cms-2.0.0.rc5 app/views/locomotive/content_types/_form.html.haml
locomotive_cms-2.0.0.rc4 app/views/locomotive/content_types/_form.html.haml
locomotive_cms-2.0.0.rc2 app/views/locomotive/content_types/_form.html.haml
locomotive_cms-2.0.0.rc1 app/views/locomotive/content_types/_form.html.haml