Sha256: 8a6abda37d85b621c24024931ca997cf34089f94bc727ad80c1c1ef98b288f55

Contents?: true

Size: 1.46 KB

Versions: 7

Compression:

Stored size: 1.46 KB

Contents

- content_for :head do
  = include_javascripts :image_picker, :edit_page
  = include_stylesheets :editable_elements, :fancybox

= f.foldable_inputs :name => :information do

  = f.input :title

  - if not @page.index? and not @page.not_found?
    = f.input :parent_id, :as => :select, :collection => parent_pages_options, :include_blank => false

  = f.input :slug, :required => false, :hint => @page.slug.blank? ? ' ' : @page.url, :input_html => { :data_url => get_path_admin_pages_url, :disabled => @page.index? || @page.not_found? }, :wrapper_html => { :style => "#{'display: none' if @page.templatized?}" }

  = f.custom_input :templatized, :css => 'toggle' do
    = f.check_box :templatized

  = f.input :content_type_id, :as => :select, :collection => current_site.content_types.all.to_a, :include_blank => false, :wrapper_html => { :style => "#{'display: none' unless @page.templatized?}" }

  = f.custom_input :published, :css => 'toggle' do
    = f.check_box :published

  = f.input :cache_strategy, :as => :select, :collection => options_for_page_cache_strategy, :include_blank => false

= render 'editable_elements', :page => @page

= f.foldable_inputs :name => :raw_template do
  = f.custom_input :value, :css => 'code full', :with_label => false do
    = f.label :raw_template
    %code{ :class => 'html' }
      = f.text_area :raw_template
    = f.errors_on :template
    .more
      = link_to t('admin.image_picker.link'), admin_theme_assets_path, :id => 'image-picker-link'

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
locomotive_cms-1.0.0.beta app/views/admin/pages/_form.html.haml
locomotive_cms-0.0.4.beta12 app/views/admin/pages/_form.html.haml
locomotive_cms-0.0.4.beta11 app/views/admin/pages/_form.html.haml
locomotive_cms-0.0.4.beta10 app/views/admin/pages/_form.html.haml
locomotive_cms-0.0.4.beta9 app/views/admin/pages/_form.html.haml
locomotive_cms-0.0.4.beta8 app/views/admin/pages/_form.html.haml
locomotive_cms-0.0.4.beta7 app/views/admin/pages/_form.html.haml