46 lines
2.1 KiB
Plaintext
46 lines
2.1 KiB
Plaintext
- content_for :head do
|
|
= render :partial => '/locomotive/content_assets/picker'
|
|
= render :partial => '/locomotive/theme_assets/picker'
|
|
|
|
- if can?(:manage, @page)
|
|
|
|
= f.inputs :name => :information do
|
|
|
|
= f.input :title, :wrapper_html => { :class => 'highlighted' }
|
|
|
|
- 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? ? t('.empty_slug') : public_page_url(@page), :input_html => { :'data-url' => get_path_pages_url, :disabled => @page.index? || @page.not_found? }, :wrapper_html => { :style => "#{'display: none' if @page.templatized?};", :class => 'em-inline-hints' }
|
|
|
|
= render 'editable_elements', :page => @page
|
|
|
|
= f.inputs :name => :seo, :class => "inputs foldable #{'folded' if inputs_folded?(@page)}" do
|
|
|
|
= f.input :seo_title
|
|
|
|
= f.input :meta_keywords
|
|
|
|
= f.input :meta_description
|
|
|
|
- if can?(:manage, @page)
|
|
|
|
= f.inputs :name => :advanced_options, :id => 'advanced-options', :class => "inputs foldable #{'folded' if inputs_folded?(@page)}" do
|
|
|
|
= 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.input :templatized, :as => :'Locomotive::Toggle', :style => "#{'display: none' if @page.redirect?}"
|
|
|
|
= f.input :published, :as => :'Locomotive::Toggle'
|
|
|
|
= f.input :listed, :as => :'Locomotive::Toggle'
|
|
|
|
= f.input :redirect, :as => :'Locomotive::Toggle', :style => "#{'display: none' if @page.templatized?}"
|
|
|
|
= f.input :cache_strategy, :as => :select, :collection => options_for_page_cache_strategy, :include_blank => false, :wrapper_html => { :style => "#{'display: none' if @page.redirect?}" }
|
|
|
|
= f.input :redirect_url, :required => true, :wrapper_html => { :style => "#{'display: none' unless @page.redirect?}" }
|
|
|
|
= f.inputs :name => :raw_template, :class => "inputs foldable #{'folded' if inputs_folded?(@page)}" do
|
|
|
|
= f.input :raw_template, :as => :'Locomotive::Code' |