.
This commit is contained in:
@@ -55,15 +55,29 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if take %}
|
{% if take %}
|
||||||
<h1>TAKE</h1>
|
<form method="POST" class="post-form">{% csrf_token %}
|
||||||
<div>
|
<div class="form-contents">
|
||||||
{% if previous %}
|
{{form}}
|
||||||
<a href="{% url 'atlas:collection_case_view_take' pk=collection.pk case_number=case_number|add:-1 cid=cid passcode=passcode %}">Previous</a>
|
</div>
|
||||||
|
{% if previous > -1 %}
|
||||||
|
<button type="submit" name="previous" class="save btn btn-default">Previous</button>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if next %}
|
{% if next %}
|
||||||
<a href="{% url 'atlas:collection_case_view_take' pk=collection.pk case_number=case_number|add:1 cid=cid passcode=passcode %}">Next</a>
|
<button type="submit" name="next" class="save btn btn-default">Next</button>
|
||||||
|
{% else %}
|
||||||
|
{% if not exam.publish_results %}
|
||||||
|
<button type="submit" name="save" class="save btn btn-default">Save</button>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
{% endif %}
|
||||||
|
|
||||||
|
{% if exam.publish_results and question.feedback %}
|
||||||
|
<h3>Feedback</h3>
|
||||||
|
<p>{{question.feedback|safe}}</p>
|
||||||
|
{% endif %}
|
||||||
|
<br />
|
||||||
|
<button type="submit" name="finish" class="save btn btn-default">Overview</button>
|
||||||
|
<button type="submit" id="goto-button" value="test" name="goto" class="hide">goto</button>
|
||||||
|
</form>
|
||||||
{% else %}
|
{% else %}
|
||||||
<div>
|
<div>
|
||||||
{% if previous %}
|
{% if previous %}
|
||||||
|
|||||||
Reference in New Issue
Block a user