Sha256: 6b17aa9d44595c561be0b3717874e0df3fea430981d819ab6c822a7f5de4c7d6

Contents?: true

Size: 929 Bytes

Versions: 4

Compression:

Stored size: 929 Bytes

Contents

- content_for :right_column do
  = render :partial => 'admin/cms/files/index'
  
= render '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 = Cms::Layout.options_for_select(@site, @layout)).present?
  = form.select :parent_id, [["---- #{t('.select_parent_layout')} ----", nil]] + options

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

= form.text_area :content, :data => {:cm_mode => 'text/html'}
= form.text_area :css, :data => {:cm_mode => 'css'}
= form.text_area :js, :data => {:cm_mode => 'javascript'}

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

.form-actions
  = form.submit t(@layout.new_record?? '.create' : '.update'), :class => 'btn btn-primary'

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
comfortable_mexican_sofa-1.10.3 app/views/admin/cms/layouts/_form.html.haml
comfortable_mexican_sofa-1.10.2 app/views/admin/cms/layouts/_form.html.haml
comfortable_mexican_sofa-1.10.1 app/views/admin/cms/layouts/_form.html.haml
comfortable_mexican_sofa-1.10.0 app/views/admin/cms/layouts/_form.html.haml