Commit 9e0497df by Chris Rodriguez

Updating response status messaging

parent 74bdef1e
......@@ -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'')
......
......@@ -51,7 +51,7 @@
%endif
%endfor
-
${status.display_name}
${status.display_tooltip}
</span>
</span>
% endif
......
......@@ -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>
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