Sha256: 7114fccd51a82b4d3e939142cf2ff96d66b031f842f82b5ca33f6d27d3de23fe

Contents?: true

Size: 1.36 KB

Versions: 8

Compression:

Stored size: 1.36 KB

Contents

- content_for :right_column do
  #form-save.box
    %label.checkbox.inline
      %input{:type => 'checkbox'}
      = Cms::Page.human_attribute_name(:is_published)
    %button.btn.btn-small.btn-primary.pull-right
  = render :partial => 'cms_admin/files/index'

= form.text_field :label, :data => {:slugify => @page.new_record?}

- unless @site.pages.count == 0 || @site.pages.root == @page
  = form.text_field :slug, :data => {:slug => true}
  - unless @page.new_record?
    = form.text_field :full_path, :id => 'full-path', :disabled => true

- if (options = Cms::Layout.options_for_select(@site)).present?
  = form.select :layout_id, options, {}, 'data-url' => form_blocks_cms_admin_site_page_path(@site, @page.id.to_i)
  
- if (options = Cms::Page.options_for_select(@site, @page)).present?
  = form.select :parent_id, options

- if (options = Cms::Page.options_for_select(@site, @page, nil, 0, false)).present?
  = form.select :target_page_id, [["---- #{t('.select_target_page')} ----", nil]] + options

= cms_hook :page_form, :object => form

= render :partial => 'cms_admin/categories/form', :object => form

= render :partial => 'form_blocks'

= form.check_box :is_published, :label => t('.is_published')

.form-actions
  = form.submit t('.preview'), :name => 'preview', :id => nil, :class => 'btn'
  = form.submit t(@page.new_record?? '.create' : '.update'), :class => 'btn btn-primary'

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
comfortable_mexican_sofa-1.9.2 app/views/cms_admin/pages/_form.html.haml
comfortable_mexican_sofa-1.8.5 app/views/cms_admin/pages/_form.html.haml
comfortable_mexican_sofa-1.9.1 app/views/cms_admin/pages/_form.html.haml
comfortable_mexican_sofa-1.9.0 app/views/cms_admin/pages/_form.html.haml
comfortable_mexican_sofa-1.8.4 app/views/cms_admin/pages/_form.html.haml
comfortable_mexican_sofa-1.8.3 app/views/cms_admin/pages/_form.html.haml
comfortable_mexican_sofa-1.8.2 app/views/cms_admin/pages/_form.html.haml
comfortable_mexican_sofa-1.8.1 app/views/cms_admin/pages/_form.html.haml