File tree Expand file tree Collapse file tree 2 files changed +13
-0
lines changed
pods/components/question-editor Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ import DS from "ember-data";
33export default DS . Model . extend ( {
44 title : DS . attr ( ) ,
55 description : DS . attr ( ) ,
6+ explanation : DS . attr ( ) ,
67 difficulty : DS . attr ( ) ,
78 user : DS . belongsTo ( 'user' ) ,
89 choices : DS . hasMany ( 'choice' ) ,
Original file line number Diff line number Diff line change 3030 </div >
3131 </div >
3232
33+ <div class =" row justify-content-center align-items-center" >
34+ <div class =" col-2" >
35+ <label >Question Explanation:</label >
36+ </div >
37+ <div class =" col-5 input-group" >
38+ {{ textarea type =" text" class =" input-text py-4" placeholder =" Edit this explanation" value =question.explanation }}
39+ </div >
40+ <div class =" col-5" >
41+ {{ markdown-to-html question.explanation extensions =' katex' }}
42+ </div >
43+ </div >
44+
3345 {{ #unless question.isNew }}
3446
3547 <div class =" button-dashed add-choice" >
You can’t perform that action at this time.
0 commit comments