- 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') }