Sha256: ba1e9367ebf1e923448a8122ab8012ec35c7a83e1b6a971baae74c72c9d64b86
Contents?: true
Size: 1.89 KB
Versions: 1
Compression:
Stored size: 1.89 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 :filter_fields, as: :select, collection: options_for_filter_fields(@content_type), include_blank: false, multiple: true, wrapper_html: { class: 'multiple' } = 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
locomotive_cms-2.5.7 | app/views/locomotive/content_types/_form.html.haml |