Sha256: a7bc6569933f48cb99a3186ac2f9c997435638e89603b45a8e298c9aeb564eb2

Contents?: true

Size: 1.01 KB

Versions: 2

Compression:

Stored size: 1.01 KB

Contents

= render 'comfy/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 = Comfy::Cms::Layout.options_for_select(@site, @layout)).present?
  = form.select :parent_id, [["---- #{t('.select_parent_layout')} ----", nil]] + options

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

= 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'}

= render 'comfy/admin/cms/partials/layout_form_after', :form => form

= form.form_group :class => 'form-actions' do
  = form.submit t(@layout.new_record?? '.create' : '.update'), :class => 'btn btn-primary'
  = link_to t('.cancel'), comfy_admin_cms_site_layouts_path, :class => 'btn btn-link'

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
comfortable_mexican_sofa-1.12.11 app/views/comfy/admin/cms/layouts/_form.html.haml
comfortable_mexican_sofa-1.12.10 app/views/comfy/admin/cms/layouts/_form.html.haml