File tree Expand file tree Collapse file tree 2 files changed +14
-5
lines changed
pods/components/question-editor Expand file tree Collapse file tree 2 files changed +14
-5
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ export default DS.Model.extend({
7
7
difficulty : DS . attr ( ) ,
8
8
positiveScore : DS . attr ( ) ,
9
9
negativeScore : DS . attr ( ) ,
10
+ multicorrect : DS . attr ( 'boolean' ) ,
10
11
user : DS . belongsTo ( 'user' ) ,
11
12
choices : DS . hasMany ( 'choice' ) ,
12
13
tags : DS . hasMany ( 'tag' )
Original file line number Diff line number Diff line change 58
58
</div >
59
59
</div >
60
60
61
+
62
+
61
63
{{ #unless question.isNew }}
62
64
63
- <div class =" button-dashed add-choice" >
64
- <a >
65
- <button {{ action ' addChoice' }} >Add Choice</button >
66
- </a >
67
- </div >
65
+ <div class =" row" >
66
+ <div class =" col-4" >
67
+ <button class =" button-dashed add-choice" {{ action ' addChoice' }} >Add Choice</button >
68
+ </div >
69
+
70
+ <div class =" col-4 my-auto" >
71
+ {{ input id =" multicorrect-checkbox" type =" checkbox" checked =question.multicorrect }}
72
+ <label for =" multicorrect-checkbox" >Multicorrect </label >
73
+ </div >
74
+ </div >
75
+
68
76
<ul >
69
77
{{ #each question.choices as |choice |}}
70
78
<li class =" justify-content-center" >
You can’t perform that action at this time.
0 commit comments