This commit is contained in:
Ross
2021-09-29 19:28:15 +01:00
parent e2f23f378b
commit 8c0905d0ff
3 changed files with 284 additions and 271 deletions
+10 -5
View File
@@ -2,11 +2,16 @@
{% block content %}
{% load thumbnail %}
<div class="anatomy">
{% load thumbnail %}
<div class="anatomy">
<a href="{% url 'anatomy:exam_update' exam.id %}" title="Edit the Exam">Edit</a>
<a href="{% url 'anatomy:exam_delete' exam.id %}" title="Delete the Exam">Delete</a>
{% if can_edit %}
<a href="{% url 'anatomy:exam_clone' exam.id %}" title="Clone the Exam">Delete</a>
{% endif %}
{% if request.user.is_superuser %}
<a href="{% url 'admin:anatomy_exam_change' exam.id %}" title="Edit the Exam using the admin interface">Admin Edit</a>
{% endif %}
<h1>Exam: {{ exam.name }}</h1>
{% include 'exam_notes.html' %}
@@ -56,8 +61,8 @@
<button id='button-open-access'>Make questions open access</button>
<button id='button-closed-access'>Make questions closed access</button>
</div>
<script type="text/javascript">
</div>
<script type="text/javascript">
$(document).ready(function () {
// send request to change the is_private state on customSwitches toggle
$("#exam-active-switch").on("change", function () {
@@ -195,5 +200,5 @@
}));
});
});
</script>
</script>
{% endblock %}
+3
View File
@@ -6,6 +6,9 @@
<div class="longs">
<a href="{% url 'longs:exam_update' exam.id %}" title="Edit the Exam">Edit</a>
<a href="{% url 'longs:exam_delete' exam.id %}" title="Delete the Exam">Delete</a>
{% if can_edit %}
<a href="{% url 'longs:exam_clone' exam.id %}" title="Clone the Exam">Delete</a>
{% endif %}
{% if request.user.is_superuser %}
<a href="{% url 'admin:longs_exam_change' exam.id %}" title="Edit the Exam using the admin interface">Admin Edit</a>
{% endif %}
+10 -5
View File
@@ -2,12 +2,17 @@
{% block content %}
{% load thumbnail %}
<div class="rapids">
{% load thumbnail %}
<div class="rapids">
<a href="{% url 'rapids:exam_update' exam.id %}" title="Edit the Exam">Edit</a>
<a href="{% url 'rapids:exam_delete' exam.id %}" title="Delete the Exam">Delete</a>
{% if can_edit %}
<a href="{% url 'rapids:exam_clone' exam.id %}" title="Clone the Exam">Delete</a>
{% endif %}
{% if request.user.is_superuser %}
<a href="{% url 'admin:rapids_exam_change' exam.id %}" title="Edit the Exam using the admin interface">Admin
Edit</a>
{% endif %}
<h1>Exam: {{ exam.name }}</h1>
{% include 'exam_notes.html' %}
@@ -78,8 +83,8 @@
<button id='button-open-access'>Make questions open access</button>
<button id='button-closed-access'>Make questions closed access</button>
</div>
<script type="text/javascript">
</div>
<script type="text/javascript">
$(document).ready(function () {
// send request to change the is_private state on customSwitches toggle
$("#exam-active-switch").on("change", function () {
@@ -230,5 +235,5 @@
});
</script>
</script>
{% endblock %}