Sha256: a411c21451a99254762f3d76bcf721bd4ced4f64366f129e8afebe3ab354e928
Contents?: true
Size: 1.55 KB
Versions: 1
Compression:
Stored size: 1.55 KB
Contents
= comfy_admin_partial "comfy/admin/cms/partials/page_form_before", form: form = form.text_field :label, data: { slugify: @page.new_record? } - if @page.parent.present? = form.text_field :slug, data: { slug: true }, prepend: @page.parent.full_path - if (options = ::Comfy::Cms::Page.options_for_select(site: @site, current_page: @page, exclude_self: true)).present? = form.select :parent_id, options, bootstrap: {custom_control: true} - if (options = ::Comfy::Cms::Layout.options_for_select(@site)).present? = form.select :layout_id, options, {bootstrap: {custom_control: true}}, {data: {url: form_fragments_comfy_admin_cms_site_page_path(@site, @page.id.to_i)}, id: "fragments-toggle"} = comfy_admin_partial "comfy/admin/cms/partials/page_form_inner", form: form #form-fragments-container = render "comfy/admin/cms/fragments/form_fragments", record: @page, scope: :page = render "comfy/admin/cms/categories/form", form: form - if (options = ::Comfy::Cms::Page.options_for_select(site: @site, current_page: @page)).present? = form.select :target_page_id, [["---- #{t('.select_target_page')} ----", nil]] + options, bootstrap: {custom_control: true} = form.check_box :is_published = comfy_admin_partial "comfy/admin/cms/partials/page_form_after", form: form = form.form_actions do = submit_tag t(".preview"), name: "preview", formtarget: "comfy-cms-preview", id: nil, class: "btn btn-secondary" = submit_tag t(@page.new_record?? ".create" : ".update"), class: "btn btn-primary ml-sm-1" = link_to t(".cancel"), comfy_admin_cms_site_pages_path, class: "btn btn-link"
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
comfortable_media_surfer-3.0.0 | app/views/comfy/admin/cms/pages/_form.html.haml |