clean up some templates
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<title>Anatomy Quiz</title>
|
||||
<title>Physics</title>
|
||||
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css" />
|
||||
<link rel="stylesheet" href="{% static 'tagulous/lib/select2-3/select2.css' %}">
|
||||
<link rel="stylesheet" href="{% static 'css/anatomy.css' %}">
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
{% for exam in exams %}
|
||||
{% if exam.active %}
|
||||
<li>
|
||||
<a href="{% url 'physics:exam_overview' pk=exam.pk %}">{{exam.name}}</a>
|
||||
<a href="{% url 'physics:exam_overview' pk=exam.pk %}">{{exam.name}}</a> <a href="{% url 'physics:exam_scores_cid' pk=exam.pk %}">(scores)</a>
|
||||
</li>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
@@ -19,7 +19,7 @@
|
||||
{% for exam in exams %}
|
||||
{% if not exam.active %}
|
||||
<li>
|
||||
<a href="{% url 'physics:exam_overview' pk=exam.pk %}">{{exam.name}}</a>
|
||||
<a href="{% url 'physics:exam_overview' pk=exam.pk %}">{{exam.name}}</a> <a href="{% url 'physics:exam_scores_cid' pk=exam.pk %}">(scores)</a>
|
||||
</li>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
|
||||
@@ -8,8 +8,8 @@
|
||||
<div id="stats-block">
|
||||
<h2>Stats</h2>
|
||||
Mean: {{mean}}, Median {{median}}, Mode {{mode}}
|
||||
<h3>Distribution of results</h3>
|
||||
<div id="stats-plot">{{plot|safe}}</div>
|
||||
|
||||
<div id="stats-plot"><h3>Distribution of results</h3>{{plot|safe}}</div>
|
||||
</div>
|
||||
<div>
|
||||
<table>
|
||||
|
||||
@@ -117,7 +117,7 @@ function postAnswers(ans) {
|
||||
|
||||
if (ret) {
|
||||
//window.saveSession();
|
||||
|
||||
$("#exams-button-link").remove();
|
||||
$("#submit").after('<button id="exams-button-link">Return to exam list</button>');
|
||||
$("#exams-button-link").click(() => {
|
||||
window.location.href = "{% url 'physics:active_exams' %}";
|
||||
|
||||
Reference in New Issue
Block a user