Commit 0a5ec531 by Sanford Student

moving main

parent 7fd52780
...@@ -70,8 +70,10 @@ ${HTML(fragment.foot_html())} ...@@ -70,8 +70,10 @@ ${HTML(fragment.foot_html())}
</%block> </%block>
<div class="course-wrapper"> <div class="course-wrapper">
<main class="course-content" id="main" tabindex="-1" aria-label="Content"> <section class="course-content" id="course-content">
${HTML(fragment.body_html())} <main id="main" tabindex="-1" aria-label="Content">
${HTML(fragment.body_html())}
</main>
</section> </section>
</div> </div>
% if course.show_calculator or is_edxnotes_enabled(course): % if course.show_calculator or is_edxnotes_enabled(course):
......
...@@ -150,40 +150,42 @@ ${HTML(fragment.foot_html())} ...@@ -150,40 +150,42 @@ ${HTML(fragment.foot_html())}
</div> </div>
% endif % endif
<main class="course-content" id="main" tabindex="-1" aria-label="Content"> <section class="course-content" id="course-content">
<div class="path"></div> <main id="main" tabindex="-1" aria-label="Content">
% if getattr(course, 'entrance_exam_enabled') and \ <div class="path"></div>
getattr(course, 'entrance_exam_minimum_score_pct') and \ % if getattr(course, 'entrance_exam_enabled') and \
entrance_exam_current_score is not UNDEFINED: getattr(course, 'entrance_exam_minimum_score_pct') and \
% if not entrance_exam_passed: entrance_exam_current_score is not UNDEFINED:
<p class="sequential-status-message"> % if not entrance_exam_passed:
${_('To access course materials, you must score {required_score}% or higher on this \ <p class="sequential-status-message">
exam. Your current score is {current_score}%.').format( ${_('To access course materials, you must score {required_score}% or higher on this \
required_score=int(round(course.entrance_exam_minimum_score_pct * 100)), exam. Your current score is {current_score}%.').format(
current_score=int(round(entrance_exam_current_score * 100)) required_score=int(round(course.entrance_exam_minimum_score_pct * 100)),
)} current_score=int(round(entrance_exam_current_score * 100))
</p> )}
<script type="text/javascript"> </p>
$(document).ajaxSuccess(function(event, xhr, settings) { <script type="text/javascript">
if (settings.url.indexOf("xmodule_handler/problem_check") > -1) { $(document).ajaxSuccess(function(event, xhr, settings) {
var data = JSON.parse(xhr.responseText); if (settings.url.indexOf("xmodule_handler/problem_check") > -1) {
if (data.entrance_exam_passed){ var data = JSON.parse(xhr.responseText);
location.reload(); if (data.entrance_exam_passed){
location.reload();
}
} }
} });
}); </script>
</script> % else:
% else: <p class="sequential-status-message">
<p class="sequential-status-message"> ${_('Your score is {current_score}%. You have passed the entrance exam.').format(
${_('Your score is {current_score}%. You have passed the entrance exam.').format( current_score=int(round(entrance_exam_current_score * 100))
current_score=int(round(entrance_exam_current_score * 100)) )}
)} </p>
</p> % endif
% endif % endif
% endif
${HTML(fragment.body_html())} ${HTML(fragment.body_html())}
</main> </main>
</section>
<section class="courseware-results-wrapper"> <section class="courseware-results-wrapper">
<div id="loading-message" aria-live="polite" aria-relevant="all"></div> <div id="loading-message" aria-live="polite" aria-relevant="all"></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