-class StorySheet extends Item\r
- @single: () ->\r
+class Pettanr.StorySheet extends Peta.Leaf\r
+ url: '/story_sheets/'\r
+ \r
+ @singular: () ->\r
'StorySheet'\r
\r
@plural: () ->\r
'StorySheets'\r
\r
defaults: {\r
- id: 11\r
+ id: null,\r
+ story_id: null,\r
+ sheet_id: null,\r
+ t: null\r
} \r
\r
- initialize: () ->\r
- confirm("Welcome to Panel")\r
+ story: () ->\r
+ new Pettanr.Story({id: @get('story_id')})\r
\r
- @test: () ->\r
- confirm( @single())\r
- confirm( @plural() )\r
- confirm( @class_name() )\r
- confirm( @element_name() )\r
- confirm( @table_name() )\r
- \r
+ sheet: () ->\r
+ new Pettanr.Sheet({id: @get('sheet_id')})\r
+ \r
+ initialize: () ->\r
+ if @id\r
+ @url = @url + @id\r
\r
- test: () ->\r
-\r
-@Panel = Panel\r