Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
ARSnova Mobile
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Merge Requests
0
Merge Requests
0
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Thomas Rehm
ARSnova Mobile
Commits
15ed645e
Commit
15ed645e
authored
Jun 05, 2015
by
Saskia Schreiber
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[FEATURE] Add successfulAnswer and score to answer model, give first visual feedback
parent
74e54ab3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletion
+7
-1
FreetextAnswerPanel.js
src/main/webapp/app/view/FreetextAnswerPanel.js
+4
-0
QuestionDetailsPanel.js
src/main/webapp/app/view/speaker/QuestionDetailsPanel.js
+3
-1
No files found.
src/main/webapp/app/view/FreetextAnswerPanel.js
View file @
15ed645e
...
...
@@ -161,9 +161,13 @@ 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>
'
,
'
<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>
'
,
'
</div>
'
,
{
...
...
src/main/webapp/app/view/speaker/QuestionDetailsPanel.js
View file @
15ed645e
...
...
@@ -48,7 +48,9 @@ Ext.define('FreetextAnswer', {
'
type
'
,
'
_rev
'
,
'
answerThumbnailImage
'
,
'
read
'
'
read
'
,
'
successfulFreeTextAnswer
'
,
'
freetextScore
'
]
}
});
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment