@@ -219,6 +219,32 @@
|
||||
content: '';
|
||||
}
|
||||
|
||||
section.error-container {
|
||||
height: 42rem;
|
||||
}
|
||||
|
||||
.error-button {
|
||||
margin-top: 2.8rem;
|
||||
margin-bottom: 1.5rem;
|
||||
padding: 10px 16px;
|
||||
box-shadow: none;
|
||||
border-radius: 0px;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.error-button span {
|
||||
font-weight: 500;
|
||||
font-size: 18px;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.error-button:hover {
|
||||
background: #2D494E;
|
||||
border-color: transparent;
|
||||
color: #fff;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
@media (max-width: map-get($grid-breakpoints, 'sm')) {
|
||||
.collapsible {
|
||||
margin-bottom: 1.3rem;
|
||||
|
||||
36
lms/templates/course_modes/error.html
Normal file
36
lms/templates/course_modes/error.html
Normal file
@@ -0,0 +1,36 @@
|
||||
<%page expression_filter="h"/>
|
||||
<%inherit file="../main.html" />
|
||||
<%!
|
||||
from django.utils.translation import ugettext as _
|
||||
from openedx.core.djangolib.markup import HTML, Text
|
||||
from django.urls import reverse
|
||||
from openedx.core.djangolib.js_utils import js_escaped_string
|
||||
%>
|
||||
|
||||
<%namespace name='static' file='/static_content.html'/>
|
||||
<%block name="bodyclass">step-select-track verification-process</%block>
|
||||
<%block name="pagetitle">
|
||||
${_("Unable to enroll in {course_name}").format(course_name=course_name)}
|
||||
</%block>
|
||||
|
||||
<%block name="header_extras">
|
||||
<link rel="stylesheet" type="text/css" href="${static.url('paragon/static/paragon.min.css')}" />
|
||||
</%block>
|
||||
|
||||
<%block name="content">
|
||||
<div class="track-selection-container mx-auto">
|
||||
<section class="wrapper m-4 error-container">
|
||||
<header class="page-header mt-5">
|
||||
<h3>${_("Sorry, we were unable to enroll you in")} ${_(course_name)}.</h3>
|
||||
</header>
|
||||
<p class="text-center p-1">${_("Error:")} ${_(error)}</p>
|
||||
<ul class="list-actions">
|
||||
<li class="text-center">
|
||||
<a href="${search_courses_url}" class="button error-button" title="${_('Explore all courses on edX')}">
|
||||
<span>${_("Explore all courses")}</span>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</section>
|
||||
</div>
|
||||
</%block>
|
||||
@@ -1,6 +1,5 @@
|
||||
<%page expression_filter="h"/>
|
||||
<%inherit file="../main.html" />
|
||||
<%namespace name='static' file='/static_content.html'/>
|
||||
<%!
|
||||
from django.utils.translation import ugettext as _
|
||||
from openedx.core.djangolib.markup import HTML, Text
|
||||
|
||||
Reference in New Issue
Block a user