-class Artist extends Item\r
- @single: () ->\r
+class Pettanr.Artist extends Peta.Owner\r
+ \r
+ @singular: () ->\r
'Artist'\r
\r
@plural: () ->\r
'Artists'\r
\r
defaults: {\r
- id: 11\r
+ id: null,\r
+ name: 'no name'\r
} \r
\r
- initialize: () ->\r
- confirm("Welcome to Panel")\r
+ overwrite: (options) ->\r
+ \r
+ icon_with_caption_view: (half = true, column_name = 'name', length = 12) ->\r
+ new Pettanr.Views.Common.IconWithCaption({item: this, half: half, column_name: column_name, length: length})\r
\r
- @test: () ->\r
- confirm( @single())\r
- confirm( @plural() )\r
- confirm( @class_name() )\r
- confirm( @element_name() )\r
- confirm( @table_name() )\r
- \r
+ initialize: (attr = {}, options = {}) ->\r
+ super(attr, options)\r
\r
- test: () ->\r
-\r
-@Panel = Panel\r