Sha256: c82918ac897a84c31a8a1e6fa5304e12ce13bb205820fc3c1c6769795b454eb4

Contents?: true

Size: 1.05 KB

Versions: 14

Compression:

Stored size: 1.05 KB

Contents

= occams_admin_partial "occams/admin/cms/partials/layout_form_before", form: form

= form.text_field :label, data: {slugify: @layout.new_record?}
= form.text_field :identifier, data: {slug: true}

- if (options = Occams::Cms::Layout.options_for_select(@site, @layout)).present?
  = form.select :parent_id, [["---- #{t('.select_parent_layout')} ----", nil]] + options, bootstrap: {custom_control: true}

- if (options = Occams::Cms::Layout.app_layouts_for_select(lookup_context.view_paths)).present?
  = form.select :app_layout, [["---- #{t('.select_app_layout')} ----", nil]] + options, bootstrap: {custom_control: true}

= form.text_area :content, data: {'cms-cm-mode' => 'text/html'}
= form.text_area :css, data: {'cms-cm-mode' => 'css'}
= form.text_area :js, data: {'cms-cm-mode' => 'javascript'}

= occams_admin_partial "occams/admin/cms/partials/layout_form_after", form: form

= form.form_actions do
  = submit_tag t(@layout.new_record? ? ".create" : ".update"), class: "btn btn-primary"
  = link_to t('.cancel'), occams_admin_cms_site_layouts_path, class: "btn btn-link"

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
occams-1.1.0 app/views/occams/admin/cms/layouts/_form.html.haml
occams-1.0.8 app/views/occams/admin/cms/layouts/_form.html.haml
occams-1.0.7.3 app/views/occams/admin/cms/layouts/_form.html.haml
occams-1.0.7.2 app/views/occams/admin/cms/layouts/_form.html.haml
occams-1.0.7.1 app/views/occams/admin/cms/layouts/_form.html.haml
occams-1.0.7 app/views/occams/admin/cms/layouts/_form.html.haml
occams-1.0.6.1 app/views/occams/admin/cms/layouts/_form.html.haml
occams-1.0.6 app/views/occams/admin/cms/layouts/_form.html.haml
occams-1.0.5 app/views/occams/admin/cms/layouts/_form.html.haml
occams-1.0.4 app/views/occams/admin/cms/layouts/_form.html.haml
occams-1.0.3 app/views/occams/admin/cms/layouts/_form.html.haml
occams-1.0.2 app/views/occams/admin/cms/layouts/_form.html.haml
occams-1.0.1 app/views/occams/admin/cms/layouts/_form.html.haml
occams-1.0.0 app/views/occams/admin/cms/layouts/_form.html.haml