.
This commit is contained in:
@@ -62,7 +62,9 @@
|
||||
{% if take %}
|
||||
<form method="POST" class="post-form">{% csrf_token %}
|
||||
<div class="form-contents">
|
||||
{% if collection.publish_results %}<fieldset disabled="disabled">{% endif %}
|
||||
{{form}}
|
||||
{% if collection.publish_results %}</fieldset>{% endif %}
|
||||
</div>
|
||||
{% if previous > -1 %}
|
||||
<button type="submit" name="previous" class="save btn btn-default">Previous</button>
|
||||
@@ -75,9 +77,9 @@
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
|
||||
{% if exam.publish_results and question.feedback %}
|
||||
<h3>Feedback</h3>
|
||||
<p>{{question.feedback|safe}}</p>
|
||||
{% if collection.publish_results %}
|
||||
<p>Score: {{answer.score}}</p>
|
||||
<p>Feedback: {{answer.feedback|safe}}</p>
|
||||
{% endif %}
|
||||
<br />
|
||||
<button type="submit" name="finish" class="save btn btn-default">Overview</button>
|
||||
|
||||
@@ -1270,6 +1270,7 @@ def collection_case_view(request, pk, case_number, take=False, cid=None, passcod
|
||||
collection = get_object_or_404(CaseCollection, pk=pk)
|
||||
|
||||
form = None
|
||||
answer = None
|
||||
|
||||
if collection.collection_type != collection.COLLECTION_TYPE_CHOICES.REVIEW:
|
||||
if not collection.active:
|
||||
@@ -1346,5 +1347,6 @@ def collection_case_view(request, pk, case_number, take=False, cid=None, passcod
|
||||
"take": take,
|
||||
"cid": cid,
|
||||
"passcode": passcode,
|
||||
"answer": answer,
|
||||
},
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user