Commit 44cb9286 authored by Thomas Rehm's avatar Thomas Rehm

[FEATURE] Styling of answer correct/wrong output

parent 15ed645e
......@@ -161,13 +161,29 @@ 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 class="correct">Correct</span></tpl>',
'<tpl if="successfulFreeTextAnswer === false"><span class="incorrect">Wrong</span></tpl>',
'<tpl if="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>',
'</tpl>',
'<tpl if="read === false && !this.isStudent()">',
'<span class="thm-red" style="padding-left:30px">{answerSubject:htmlEncode}</span>',
'<tpl if="successfulFreeTextAnswer === true"><span class="correct">Correct</span></tpl>',
'<tpl if="successfulFreeTextAnswer === false"><span class="incorrect">Wrong</span></tpl>',
'<tpl if="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>',
'</tpl>',
'</div>',
{
......
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