Commit 7682663e by Arjun Singh

Make broken problem error a bit scarier and fix typo in message

parent 2c239f87
...@@ -257,14 +257,15 @@ class CapaModule(XModule): ...@@ -257,14 +257,15 @@ class CapaModule(XModule):
# Prepend a scary warning to the student # Prepend a scary warning to the student
warning = '<div class="capa_reset">'\ warning = '<div class="capa_reset">'\
'<h2>Warning: Problem reset to initial state!</h2>'\ '<h2>Warning: The problem has been reset to its initial state!</h2>'\
'Problem state was corruped by invalid submission. The submission consisted of:'\ 'The problem\'s state was corrupted by an invalid submission. ' \
'The submission consisted of:'\
'<ul>' '<ul>'
for student_answer in student_answers.values(): for student_answer in student_answers.values():
if student_answer != '': if student_answer != '':
warning += '<li>' + cgi.escape(student_answer) + '</li>' warning += '<li>' + cgi.escape(student_answer) + '</li>'
warning += '</ul>'\ warning += '</ul>'\
'If the problem persists, please contact the course staff.'\ 'If this error persists, please contact the course staff.'\
'</div>' '</div>'
html = warning html = warning
......
...@@ -467,15 +467,15 @@ section.problem { ...@@ -467,15 +467,15 @@ section.problem {
div.capa_reset { div.capa_reset {
padding: 25px; padding: 25px;
border: 1px solid #EBE8BF; border: 1px solid $error-red;
background-color: lighten($error-red, 25%);
border-radius: 3px; border-radius: 3px;
background: #FFFCDD;
font-size: 1em; font-size: 1em;
margin-top: 10px; margin-top: 10px;
margin-bottom: 10px; margin-bottom: 10px;
} }
.capa_reset>h2 { .capa_reset>h2 {
color: #FF0000; color: #AA0000;
} }
.capa_reset li { .capa_reset li {
font-size: 0.9em; font-size: 0.9em;
......
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