This commit is contained in:
Ross
2022-06-26 23:04:40 +01:00
parent e2c8f751f2
commit 5114133608
6 changed files with 35 additions and 16 deletions
@@ -64,17 +64,19 @@
{% endif %}
<form method="POST" class="post-form">{% csrf_token %}
<div class="form-contents">
<fieldset {% if collection.publish_results %}disabled="disabled"{% endif %}>
{{form}}
</fieldset>
</div>
<p>
{% if collection.publish_results %}
<h4>Answer score: {{answer.score}}</h4>
Answer feedback: {{answer.feedback|safe}}
{% endif %}
</p>
{% if collection.collection_type == "REP" %}
<div class="form-contents">
<fieldset {% if collection.publish_results %}disabled="disabled"{% endif %}>
{{form}}
</fieldset>
</div>
<p>
{% if collection.publish_results %}
<h4>Answer score: {{answer.score}}</h4>
Answer feedback: {{answer.feedback|safe}}
{% endif %}
</p>
{% endif %}
{% if previous > -1 %}
<button type="submit" name="previous" class="save btn btn-default">Previous</button>
{% endif %}
@@ -0,0 +1,12 @@
{% extends 'atlas/base.html' %}
{% block content %}
<h2>Collection: {{exam.name}}</h2>
<ul>
{% for case in collection.cases.all %}
<li><a href="{% url 'atlas:collection_case_view_review' pk=collection.id case_number=forloop.counter0 %}">Case {{forloop.counter}}</a></li>
{% endfor %}
</ul>
{% endblock %}
@@ -2,9 +2,6 @@
{% block content %}
<h2>{{collection.name}}
<ul>
</ul>
{% if collection.collection_type == "REP" %}
<h2>Start: {{exam.name}}</h2>
Enter your CID and passcode in the below boxes.<br />
@@ -48,6 +45,5 @@
});
});
</script>
{% endif %}
{% endblock %}