Sha256: cce622e8a7479b48f3d0d2af32bd1ff4459d7d98daf68d01277f281701c9c7bc
Contents?: true
Size: 944 Bytes
Versions: 3
Compression:
Stored size: 944 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 => {'cms-cm-mode' => 'text/html'} = form.text_area :css, :data => {'cms-cm-mode' => 'css'} = form.text_area :js, :data => {'cms-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
3 entries across 3 versions & 1 rubygems