diff --git a/common/lib/xmodule/xmodule/capa_module.py b/common/lib/xmodule/xmodule/capa_module.py
index 9eeaa57896..f6ba0d278d 100644
--- a/common/lib/xmodule/xmodule/capa_module.py
+++ b/common/lib/xmodule/xmodule/capa_module.py
@@ -256,16 +256,16 @@ class CapaModule(XModule):
seed=self.seed, system=self.system)
# Prepend a scary warning to the student
- warning = '
'
- warning += '
Problem reset to initial state!
'
- warning += '
Problem state was corruped by invalid submission. The submission consisted of:
'
- warning += '
'
+ warning = ''\
+ '
Warning: Problem reset to initial state!
'\
+ 'Problem state was corruped by invalid submission. The submission consisted of:'\
+ '
'
for student_answer in student_answers.values():
if student_answer != '':
warning += '- ' + cgi.escape(student_answer) + '
'
- warning += '
'
- warning += '
If problem persists, please contact the course staff.
'
- warning += '
'
+ warning += '
'\
+ 'If problem persists, please contact the course staff.'\
+ '
'
html = warning
try:
diff --git a/common/lib/xmodule/xmodule/css/capa/display.scss b/common/lib/xmodule/xmodule/css/capa/display.scss
index 0591a01843..944904ca54 100644
--- a/common/lib/xmodule/xmodule/css/capa/display.scss
+++ b/common/lib/xmodule/xmodule/css/capa/display.scss
@@ -465,6 +465,22 @@ section.problem {
margin-top: 10px;
}
+ div.capa_reset {
+ padding: 25px;
+ border: 1px solid #EBE8BF;
+ border-radius: 3px;
+ background: #FFFCDD;
+ font-size: 1em;
+ margin-top: 10px;
+ margin-bottom: 10px;
+ }
+ .capa_reset>h2 {
+ color: #FF0000;
+ }
+ .capa_reset li {
+ font-size: 0.9em;
+ }
+
.hints {
border: 1px solid #ccc;