add context to cloning forms

This commit is contained in:
Ross
2024-03-11 11:48:37 +00:00
parent 0cb38f5c31
commit a62023a5d8
17 changed files with 65 additions and 97 deletions
+27
View File
@@ -0,0 +1,27 @@
{% extends view.model.app_name|add:"/exams.html" %}
{% block js %}
{{ form.media }}
{% endblock %}
{% block navigation %}
{{ block.super }}
{% include exam.get_link_headers %}
{% endblock navigation %}
{% block content %}
<h2>Cloning Exam: {{exam}}</h2>
<p>
This will create a new exam with the same settings, questions and answers as the original exam. <br/>
Candidate groups and candidates will not be cloned.
</p>
<form action="" method="post">
{% csrf_token %}
<table>
{{ form.as_table }}
</table>
<input type="submit" value="Submit">
</form>
{% endblock %}