Sha256: 1b4ef9b57aa808f99e366564cd9276f2b38b6ad3f4f63435a96ce61e18f3da07
Contents?: true
Size: 1.5 KB
Versions: 5
Compression:
Stored size: 1.5 KB
Contents
- content_for :head do = javascript_include_tag 'admin/plugins/codemirror/codemirror', 'admin/plugins/wslide', 'admin/pages', 'admin/page_parts' = stylesheet_link_tag 'admin/page_parts' = f.foldable_inputs :name => :information do = f.input :title = f.input :layout_id, :as => :select, :collection => current_site.layouts.all, :input_html => { :data_url => admin_layout_page_parts_url('_id_to_replace_') } - 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? } = f.custom_input :published, :css => 'toggle' do = f.check_box :published = f.foldable_inputs :name => :meta do = f.input :keywords = f.input :description #page-parts .nav - @page.parts.each_with_index do |part, index| = link_to content_tag(:span, part.name), "#parts-#{index + 1}", :id => "control-part-#{part.slug}", :class => "part-#{index} #{'on' if index == 0}", :style => "#{'display: none' if part.disabled?}" .clear .wrapper %ul{ :id => "parts" } = f.fields_for :parts do |g| %li{ :style => "#{'display: none' if g.object.disabled?}" } %code= g.text_area :value = g.hidden_field :name = g.hidden_field :slug = g.hidden_field :disabled, :class => 'disabled'
Version data entries
5 entries across 5 versions & 1 rubygems