section improvements, area elements mostly
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
attr = DS.attr
|
||||
App.SectionArea = DS.Model.extend Ember.Validations.Mixin,
|
||||
title: attr 'string'
|
||||
width: attr 'number', defaultValue: 2
|
||||
height: attr 'number', defaultValue: 2
|
||||
position_x: attr 'number', defaultValue: 0
|
||||
position_y: attr 'number', defaultValue: 0
|
||||
rounded: attr 'boolean', defaultValue: false
|
||||
section: DS.belongsTo('section')
|
||||
validations:
|
||||
title: {presence: true}
|
||||
@@ -5,3 +5,4 @@ App.Section = DS.Model.extend
|
||||
height: attr 'number'
|
||||
tables: DS.hasMany('table')
|
||||
section_elements: DS.hasMany('section-element')
|
||||
section_areas: DS.hasMany('section-area')
|
||||
|
||||
Reference in New Issue
Block a user