Commit 0b3f9ee5 by clrux

Merge pull request #11457 from edx/clrux/ac-252

LMS: updating response status messaging
parents f8c66c1a 9e0497df
...@@ -93,12 +93,12 @@ class Status(object): ...@@ -93,12 +93,12 @@ class Status(object):
} }
tooltips = { tooltips = {
# Translators: these are tooltips that indicate the state of an assessment question # Translators: these are tooltips that indicate the state of an assessment question
'correct': _('This is correct.'), 'correct': _('This answer is correct.'),
'incorrect': _('This is incorrect.'), 'incorrect': _('This answer is incorrect.'),
'partially-correct': _('This is partially correct.'), 'partially-correct': _('This answer is partially correct.'),
'unanswered': _('This is unanswered.'), 'unanswered': _('This answer is unanswered.'),
'unsubmitted': _('This is unanswered.'), 'unsubmitted': _('This answer is unanswered.'),
'queued': _('This is being processed.'), 'queued': _('This answer is being processed.'),
} }
self.display_name = names.get(status, unicode(status)) self.display_name = names.get(status, unicode(status))
self.display_tooltip = tooltips.get(status, u'') self.display_tooltip = tooltips.get(status, u'')
......
...@@ -47,11 +47,11 @@ ...@@ -47,11 +47,11 @@
<span class="sr"> <span class="sr">
%for choice_id, choice_description in choices: %for choice_id, choice_description in choices:
% if choice_id in value: % if choice_id in value:
${choice_description}, ${choice_description},
%endif %endif
%endfor %endfor
- -
${status.display_name} ${status.display_tooltip}
</span> </span>
</span> </span>
% endif % endif
...@@ -62,4 +62,4 @@ ...@@ -62,4 +62,4 @@
% if msg: % if msg:
<span class="message">${msg|n}</span> <span class="message">${msg|n}</span>
% endif % endif
</form> </form>
\ No newline at end of file
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
<span class="status ${status.classname}" <span class="status ${status.classname}"
id="status_${id}" id="status_${id}"
aria-describedby="input_${id}" data-tooltip="${status.display_tooltip}"> 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> </span>
</div> </div>
<p class="answer" id="answer_${id}"></p> <p class="answer" id="answer_${id}"></p>
......
...@@ -18,6 +18,6 @@ ...@@ -18,6 +18,6 @@
<span id="answer_${id}"></span> <span id="answer_${id}"></span>
<div class="indicator-container"> <div class="indicator-container">
<span class="status ${status.classname}" id="status_${id}" aria-describedby="input_${id}"></span> <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>
</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