Sha256: bc2792d571b8eaf7bb9598ea83c69e7f17b95532a42450bab88dcb3a9d734f6e

Contents?: true

Size: 1.08 KB

Versions: 1

Compression:

Stored size: 1.08 KB

Contents

- content_for :right_column do
  = render 'comfy/admin/cms/files/index'
  
= render :partial => 'comfy/admin/cms/partials/layout_form_before', :object => 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).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 :partial => 'comfy/admin/cms/partials/layout_form_after', :object => 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

1 entries across 1 versions & 1 rubygems

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