Sha256: b23fcef6ebe76f4a091c2f50b0b1c7b1de8eb68398f06627fad675f14318158b
Contents?: true
Size: 1.31 KB
Versions: 9
Compression:
Stored size: 1.31 KB
Contents
= f.inputs :information do = f.input :title, input_html: { class: 'input-lg' } - if display_page_layouts? = f.input :layout_id, as: :select, collection: options_for_page_layouts, include_blank: false - if display_slug?(@page) = f.input :slug = f.input :parent_id, as: :select, collection: parent_pages_options, include_blank: false - if policy(current_site).site_admin_or_designer? = f.input :handle = f.input :redirect, as: :toggle = f.input :redirect_url, as: :string, wrapper_html: { class: "#{'hide' unless @page.redirect?}" } = f.input :redirect_type, as: :select, collection: options_for_page_redirect_type, include_blank: false, wrapper_html: {class: "#{'hide' unless @page.redirect?}" } = f.input :published, as: :toggle - if !@page.not_found? && !@page.templatized? && @page.default_response_type? = f.input :listed, as: :toggle - if policy(current_site).site_admin_or_designer? && current_site.cache_enabled? && !@page.redirect? = f.inputs :cache_enabled do = f.input :cache_enabled, as: :toggle = f.input :cache_control, as: :string, wrapper_html: { class: "#{'hide' unless f.object.cache_enabled?}" } = f.input :cache_vary, as: :string, wrapper_html: { class: "#{'hide' unless f.object.cache_enabled?}" } = render 'locomotive/pages/form/actions', f: f
Version data entries
9 entries across 9 versions & 1 rubygems