Commit 69afd2d3 by Giulio Gratta Committed by Jason Bau

courseware active location, suppress browser form validation, and progress graph…

courseware active location, suppress browser form validation, and progress graph accessibilit changes
parent 7ee1777d
...@@ -20,6 +20,9 @@ def url_class(is_active): ...@@ -20,6 +20,9 @@ def url_class(is_active):
<li> <li>
<a href="${tab.link | h}" class="${url_class(tab.is_active)}"> <a href="${tab.link | h}" class="${url_class(tab.is_active)}">
${tab.name | h} ${tab.name | h}
% if tab.is_active == True:
<span class="visuallyhidden">, current location</span>
%endif
% if tab.has_img == True: % if tab.has_img == True:
<img src="${tab.img}"/> <img src="${tab.img}"/>
%endif %endif
......
...@@ -35,7 +35,7 @@ ${progress_graph.body(grade_summary, course.grade_cutoffs, "grade-detail-graph", ...@@ -35,7 +35,7 @@ ${progress_graph.body(grade_summary, course.grade_cutoffs, "grade-detail-graph",
</header> </header>
%if not course.disable_progress_graph: %if not course.disable_progress_graph:
<div id="grade-detail-graph"></div> <div id="grade-detail-graph" aria-hidden="true"></div>
%endif %endif
<ol class="chapters"> <ol class="chapters">
...@@ -54,7 +54,12 @@ ${progress_graph.body(grade_summary, course.grade_cutoffs, "grade-detail-graph", ...@@ -54,7 +54,12 @@ ${progress_graph.body(grade_summary, course.grade_cutoffs, "grade-detail-graph",
%> %>
<h3><a href="${reverse('courseware_section', kwargs=dict(course_id=course.id, chapter=chapter['url_name'], section=section['url_name']))}"> <h3><a href="${reverse('courseware_section', kwargs=dict(course_id=course.id, chapter=chapter['url_name'], section=section['url_name']))}">
${ section['display_name'] }</a> ${ section['display_name'] }
%if total > 0 or earned > 0:
<span class="visuallyhidden">
${"{0:.3n} of {1:.3n} possible points".format( float(earned), float(total) )}
</span></a>
%endif
%if total > 0 or earned > 0: %if total > 0 or earned > 0:
<span> ${"({0:.3n}/{1:.3n}) {2}".format( float(earned), float(total), percentageString )}</span> <span> ${"({0:.3n}/{1:.3n}) {2}".format( float(earned), float(total), percentageString )}</span>
%endif %endif
......
...@@ -86,7 +86,7 @@ ...@@ -86,7 +86,7 @@
<section class="login container"> <section class="login container">
<section role="main" class="content"> <section role="main" class="content">
<form role="form" id="login-form" method="post" data-remote="true" action="/login_ajax"> <form role="form" id="login-form" method="post" data-remote="true" action="/login_ajax" novalidate>
<!-- status messages --> <!-- status messages -->
<div role="alert" class="status message"> <div role="alert" class="status message">
......
...@@ -89,7 +89,7 @@ ...@@ -89,7 +89,7 @@
<section class="register container"> <section class="register container">
<section role="main" class="content"> <section role="main" class="content">
<form role="form" id="register-form" method="post" data-remote="true" action="/create_account"> <form role="form" id="register-form" method="post" data-remote="true" action="/create_account" novalidate>
<!-- status messages --> <!-- status messages -->
<div role="alert" class="status message"> <div role="alert" class="status message">
......
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