Sha256: dfdb170fcfd834dde642bc10235e8d15d53241c60f198fb63d068a41ec9c3a51
Contents?: true
Size: 1.72 KB
Versions: 25
Compression:
Stored size: 1.72 KB
Contents
- content_for :head do = render 'locomotive/custom_fields/form', f: f - content_for :backbone_view_data do :plain content_type: #{escape_json @content_type.persisted? ? @content_type.to_json.html_safe : 'null'}, inverse_of_list: #{escape_json options_for_content_type_inverse_of.to_json.html_safe} = 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
25 entries across 25 versions & 1 rubygems