class Pettanr.GroundColor extends Peta.Element url: '/ground_colors/' @singular: () -> 'GroundColor' @plural: () -> 'GroundColors' defaults: { id: null, code: 0, } @has_picture: () -> false panel: () -> new Pettanr.Panel({id: @get('panel_id')}) initialize: () -> if @id @url = @url + @id class Pettanr.GroundColor.Collection extends Backbone.Collection model: Pettanr.GroundColor url: '/ground_colors/'