Sha256: 57e8f46747663a9c07b6eac14998217304e4b2f873eac1c3e6e7e4c84854cc63
Contents?: true
Size: 894 Bytes
Versions: 6
Compression:
Stored size: 894 Bytes
Contents
# encoding: utf-8 class SunriseStructure < Sunrise::AbstractModel self.resource_name = "Structure" default_list_view :tree available_list_view [:tree, :thumbs] list :tree do field :title field :updated_at field :id end show do field :title field :redirect_url field :is_visible end edit do field :title field :redirect_url field :slug field :parent_id, :collection => lambda { Structure.nested_set_options() {|i| "#{'–' * i.depth} #{i.title}"} }, :if => lambda { |s| s.moveable? } field :kind, :collection => lambda { StructureType.all }, :include_blank => false field :position, :collection => lambda { PositionType.all }, :include_blank => false field :is_visible group :meta_tags, :holder => :sidebar do field :tag_title field :tag_keywords field :tag_description end end end
Version data entries
6 entries across 4 versions & 1 rubygems