Updating response status messaging
This commit is contained in:
@@ -93,12 +93,12 @@ class Status(object):
|
||||
}
|
||||
tooltips = {
|
||||
# Translators: these are tooltips that indicate the state of an assessment question
|
||||
'correct': _('This is correct.'),
|
||||
'incorrect': _('This is incorrect.'),
|
||||
'partially-correct': _('This is partially correct.'),
|
||||
'unanswered': _('This is unanswered.'),
|
||||
'unsubmitted': _('This is unanswered.'),
|
||||
'queued': _('This is being processed.'),
|
||||
'correct': _('This answer is correct.'),
|
||||
'incorrect': _('This answer is incorrect.'),
|
||||
'partially-correct': _('This answer is partially correct.'),
|
||||
'unanswered': _('This answer is unanswered.'),
|
||||
'unsubmitted': _('This answer is unanswered.'),
|
||||
'queued': _('This answer is being processed.'),
|
||||
}
|
||||
self.display_name = names.get(status, unicode(status))
|
||||
self.display_tooltip = tooltips.get(status, u'')
|
||||
|
||||
@@ -47,11 +47,11 @@
|
||||
<span class="sr">
|
||||
%for choice_id, choice_description in choices:
|
||||
% if choice_id in value:
|
||||
${choice_description},
|
||||
${choice_description},
|
||||
%endif
|
||||
%endfor
|
||||
-
|
||||
${status.display_name}
|
||||
${status.display_tooltip}
|
||||
</span>
|
||||
</span>
|
||||
% endif
|
||||
@@ -62,4 +62,4 @@
|
||||
% if msg:
|
||||
<span class="message">${msg|n}</span>
|
||||
% endif
|
||||
</form>
|
||||
</form>
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
<span class="status ${status.classname}"
|
||||
id="status_${id}"
|
||||
aria-describedby="input_${id}" data-tooltip="${status.display_tooltip}">
|
||||
<span class="sr">${value|h} - ${status.display_name}</span>
|
||||
<span class="sr">${value|h} - ${status.display_tooltip}</span>
|
||||
</span>
|
||||
</div>
|
||||
<p class="answer" id="answer_${id}"></p>
|
||||
|
||||
@@ -18,6 +18,6 @@
|
||||
<span id="answer_${id}"></span>
|
||||
<div class="indicator-container">
|
||||
<span class="status ${status.classname}" id="status_${id}" aria-describedby="input_${id}"></span>
|
||||
<span class="sr">${status.display_name}</span>
|
||||
<span class="sr">${status.display_tooltip}</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user