File tree Expand file tree Collapse file tree 3 files changed +18
-2
lines changed
pods/components/question-editor Expand file tree Collapse file tree 3 files changed +18
-2
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,5 @@ import DS from "ember-data";
33export default DS . Model . extend ( {
44 title : DS . attr ( ) ,
55 description : DS . attr ( ) ,
6- positiveWeight : DS . attr ( ) ,
7- negativeWeight : DS . attr ( ) ,
86 question : DS . belongsTo ( 'question' )
97} )
Original file line number Diff line number Diff line change @@ -4,6 +4,8 @@ export default DS.Model.extend({
44 title : DS . attr ( ) ,
55 description : DS . attr ( ) ,
66 difficulty : DS . attr ( ) ,
7+ positiveScore : DS . attr ( ) ,
8+ negativeScore : DS . attr ( ) ,
79 user : DS . belongsTo ( 'user' ) ,
810 choices : DS . hasMany ( 'choice' ) ,
911 tags : DS . hasMany ( 'tag' )
Original file line number Diff line number Diff line change 3030 </div >
3131 </div >
3232
33+ <div class =" row justiy-content-center align-items-center" >
34+ <div class =" col-1" >
35+ <label >Positive Score</label >
36+ </div >
37+ <div class =" col-5" >
38+ {{ input type =" number" class =" input-text" value =question.positiveScore }}
39+ </div >
40+
41+ <div class =" col-1" >
42+ <label >Negative Score</label >
43+ </div >
44+ <div class =" col-5" >
45+ {{ input type =" number" class =" input-text" value =question.negativeScore }}
46+ </div >
47+ </div >
48+
3349 {{ #unless question.isNew }}
3450
3551 <div class =" button-dashed add-choice" >
You can’t perform that action at this time.
0 commit comments