Sha256: d39933678e976b9b5f7b335789e571b3506ba18159f2dcbefe57f0a5c96cae0c

Contents?: true

Size: 793 Bytes

Versions: 1

Compression:

Stored size: 793 Bytes

Contents

class PufferPages::PagesBase < Puffer::TreeBase
  unloadable

  layout 'puffer_pages'

  helper :puffer_pages

  setup do
    group :pages
  end

  tree do
    field :name, :render => :tree_page
  end

  index do
    field :name
    field :slug
    field :layout_name
    field :status
  end

  form do
    field :name
    field :slug
    field :page_parts, :type => :page_parts do
      field :body, :type => :page_part_body, :html => {:codemirror => true}
      field :name, :type => :hidden
      field :_destroy, :type => :hidden, :html => { :class => 'destroy_mark' }
    end
    field :layout_name, :select => :possible_layouts
    field :status, :select => :possible_statuses
    field :title
    field :description
    field :keywords
    field :parent_id, :type => :hidden
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
puffer_pages-0.0.18 app/controllers/puffer_pages/pages_base.rb