File tree Expand file tree Collapse file tree 2 files changed +15
-2
lines changed Expand file tree Collapse file tree 2 files changed +15
-2
lines changed Original file line number Diff line number Diff line change
1
+ import attr from 'ember-data/attr' ;
2
+ import ModelBase from 'open-event-frontend/models/base' ;
3
+ import { belongsTo } from 'ember-data/relationships' ;
4
+
5
+ export default ModelBase . extend ( {
6
+
7
+ value : attr ( 'string' ) ,
8
+ customForm : belongsTo ( 'customForm' )
9
+ } ) ;
Original file line number Diff line number Diff line change 1
1
import { computed , observer } from '@ember/object' ;
2
2
import attr from 'ember-data/attr' ;
3
3
import ModelBase from 'open-event-frontend/models/base' ;
4
- import { belongsTo } from 'ember-data/relationships' ;
4
+ import { belongsTo , hasMany } from 'ember-data/relationships' ;
5
5
6
6
export default ModelBase . extend ( {
7
7
@@ -11,8 +11,12 @@ export default ModelBase.extend({
11
11
isRequired : attr ( 'boolean' , { defaultValue : false } ) ,
12
12
isIncluded : attr ( 'boolean' , { defaultValue : false } ) ,
13
13
isFixed : attr ( 'boolean' , { defaultValue : false } ) ,
14
+ isComplex : attr ( 'boolean' , { defaultValue : false } ) ,
15
+ description : attr ( 'string' , { defaultValue : 'text' } ) ,
14
16
15
- event : belongsTo ( 'event' ) ,
17
+
18
+ event : belongsTo ( 'event' ) ,
19
+ customFormOptions : hasMany ( 'customFormOptions' ) ,
16
20
17
21
session : {
18
22
title : 'Title' ,
You can’t perform that action at this time.
0 commit comments