Commit 3f405c97 authored by Saskia Schreiber's avatar Saskia Schreiber

[BUGFIX] Only show right/wrong labels when question is fixed

parent 44cb9286
......@@ -161,34 +161,37 @@ Ext.define('ARSnova.view.FreetextAnswerPanel', {
'<span style="color:gray">{formattedTime}</span>',
'<tpl if="read === true || this.isStudent()">',
'<span style="padding-left:30px">{answerSubject:htmlEncode}</span>',
'<tpl if="successfulFreeTextAnswer === true">',
'<span style="float: right;" class="thm-green correct">',
Messages.CORRECT,
'</span>',
'<tpl if="this.isFixedAnswer() && successfulFreeTextAnswer === true">',
'<span style="float: right;" class="thm-green correct">',
Messages.CORRECT,
'</span>',
'</tpl>',
'<tpl if="successfulFreeTextAnswer === false">',
'<span style="float: right;" class="thm-red incorrect">',
Messages.WRONG,
'</span>',
'<tpl if="this.isFixedAnswer() && successfulFreeTextAnswer === false">',
'<span style="float: right;" class="thm-red incorrect">',
Messages.WRONG,
'</span>',
'</tpl>',
'</tpl>',
'<tpl if="read === false && !this.isStudent()">',
'<span class="thm-red" style="padding-left:30px">{answerSubject:htmlEncode}</span>',
'<tpl if="successfulFreeTextAnswer === true">',
'<span style="float: right;" class="thm-green correct">',
Messages.CORRECT,
'</span>',
'<tpl if="this.isFixedAnswer() && successfulFreeTextAnswer === true">',
'<span style="float: right;" class="thm-green correct">',
Messages.CORRECT,
'</span>',
'</tpl>',
'<tpl if="successfulFreeTextAnswer === false">',
'<span style="float: right;" class="thm-red incorrect">',
Messages.WRONG,
'</span>',
'<tpl if="this.isFixedAnswer() && successfulFreeTextAnswer === false">',
'<span style="float: right;" class="thm-red incorrect">',
Messages.WRONG,
'</span>',
'</tpl>',
'</tpl>',
'</div>',
{
isStudent: function () {
return ARSnova.app.isSessionOwner !== true;
},
isFixedAnswer: function() {
return self.questionObj.fixedAnswer;
}
}
),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment