Commit 9f188ed2 by Frances Botsford Committed by Julian Arni

additional copy and styling for component syntax error in studio

parent 2721966d
......@@ -9,8 +9,6 @@ from common import type_in_codemirror
from time import sleep
from pdb import set_trace
DISPLAY_NAME = "Display Name"
MAXIMUM_ATTEMPTS = "Maximum Attempts"
PROBLEM_WEIGHT = "Problem Weight"
......
......@@ -355,6 +355,19 @@ body.course.unit,.view-unit {
}
}
.wrapper-alert-error {
box-shadow: none;
border-top: 5px solid $red-l1;
.copy,
.title {
color: $white;
}
}
}
}
......
<%! from django.utils.translation import ugettext as _ %>
<%! from django.core.urlresolvers import reverse %>
<%block name="bodyclass">error</%block>
<%block name="content">
<div class="wrapper wrapper-alert wrapper-alert-error is-shown">
......@@ -12,11 +11,11 @@
${_("We're having trouble rendering your component")}
</h2>
<p>You can try re-editing your component to check that your syntax is correct.</p>
<p>Students will not be able to access this component. Re-edit your component to fix the error.</p>
% if message:
<p class="description">
${_("Error message:")}
${_("Error:")}
${message | h}
</p>
% endif
......
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