.
This commit is contained in:
@@ -37,22 +37,8 @@
|
|||||||
{{ author }},
|
{{ author }},
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</div>
|
</div>
|
||||||
{% if can_edit %}
|
{% include 'generic/exam_footer.html' %}
|
||||||
<p>
|
|
||||||
<button id='button-edit-order' title='click and drag questions to change order' data-posturl="{% url 'anatomy:exam_json_edit' pk=exam.pk %}">Edit question order / Delete questions</button>
|
|
||||||
</p>
|
|
||||||
{% endif %}
|
|
||||||
<div>
|
|
||||||
JSON creation time: {{exam.json_creation_time}} ({{exam.json_creation_time|date:"c"}}),
|
|
||||||
JSON creation id: {{exam.exam_json_id}}
|
|
||||||
</div>
|
|
||||||
<a href="{% url 'anatomy:exam_json' pk=exam.pk %}">JSON</a>
|
|
||||||
<a href="{% url 'anatomy:exam_json_unbased' pk=exam.pk %}">JSON (unbased)</a>
|
|
||||||
<a href="{% url 'anatomy:exam_json_recreate' pk=exam.pk %}">Refresh JSON cache</a>
|
|
||||||
{% if request.user.is_superuser %}
|
|
||||||
<button id='button-open-access' data-posturl="{% url 'anatomy:exam_json_edit' pk=exam.pk %}">Make questions open access</button>
|
|
||||||
<button id='button-closed-access' data-posturl="{% url 'anatomy:exam_json_edit' pk=exam.pk %}">Make questions closed access</button>
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
{% include 'exam_overview_js.html' %}
|
{% include 'exam_overview_js.html' %}
|
||||||
|
|||||||
@@ -11,5 +11,5 @@
|
|||||||
<a href="{% url 'anatomy:exam_cids' exam_id=exam.pk %}">Candidates</a> /
|
<a href="{% url 'anatomy:exam_cids' exam_id=exam.pk %}">Candidates</a> /
|
||||||
<a href="{% url 'anatomy:exam_stats' exam_id=exam.pk %}">Stats</a> /
|
<a href="{% url 'anatomy:exam_stats' exam_id=exam.pk %}">Stats</a> /
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<a href="{% url 'anatomy:anatomy_create_exam' pk=exam.pk %}">Add New Question</a>
|
<a href="{% url 'anatomy:anatomy_create_exam' pk=exam.pk %}" title="Add a new question directly into the exam.">Add New Question</a>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|||||||
@@ -0,0 +1,18 @@
|
|||||||
|
{% if can_edit %}
|
||||||
|
<p>
|
||||||
|
<button id='button-edit-order' title='click and drag questions to change order' data-posturl="{% url 'anatomy:exam_json_edit' pk=exam.pk %}">Edit question order / Delete questions</button>
|
||||||
|
</p>
|
||||||
|
<details><summary>Additional details</summary>
|
||||||
|
<div>
|
||||||
|
JSON creation time: {{exam.json_creation_time}} ({{exam.json_creation_time|date:"c"}}),
|
||||||
|
JSON creation id: {{exam.exam_json_id}}
|
||||||
|
</div>
|
||||||
|
<a href="{% url 'anatomy:exam_json' pk=exam.pk %}">JSON</a>
|
||||||
|
<a href="{% url 'anatomy:exam_json_unbased' pk=exam.pk %}">JSON (unbased)</a>
|
||||||
|
<a href="{% url 'anatomy:exam_json_recreate' pk=exam.pk %}">Refresh JSON cache</a>
|
||||||
|
{% if request.user.is_superuser %}
|
||||||
|
<button id='button-open-access' data-posturl="{% url 'anatomy:exam_json_edit' pk=exam.pk %}">Make questions open access</button>
|
||||||
|
<button id='button-closed-access' data-posturl="{% url 'anatomy:exam_json_edit' pk=exam.pk %}">Make questions closed access</button>
|
||||||
|
{% endif %}
|
||||||
|
</details>
|
||||||
|
{% endif %}
|
||||||
@@ -46,7 +46,7 @@ Markers:
|
|||||||
<br/>
|
<br/>
|
||||||
|
|
||||||
|
|
||||||
{% if can_edit %}
|
{% if can_edit and exam.exam_mode %}
|
||||||
<details class="answer-management">
|
<details class="answer-management">
|
||||||
<summary>Answer management</summary>
|
<summary>Answer management</summary>
|
||||||
|
|
||||||
|
|||||||
@@ -50,22 +50,7 @@
|
|||||||
{% endfor %}
|
{% endfor %}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{% if can_edit %}
|
{% include 'generic/exam_footer.html' %}
|
||||||
|
|
||||||
<p><button id='button-edit-order' title='click and drag questions to change order' data-posturl="{% url 'longs:exam_json_edit' pk=exam.pk %}">Edit question order / Delete questions</button></p>
|
|
||||||
<div>
|
|
||||||
JSON creation time: {{exam.json_creation_time}} ({{exam.json_creation_time|date:"c"}}),
|
|
||||||
JSON creation id: {{exam.exam_json_id}}
|
|
||||||
{% if exam.recreate_json %}[JSON out of date]{% endif %}
|
|
||||||
</div>
|
|
||||||
<a href="{% url 'longs:exam_json' pk=exam.pk %}">JSON</a>
|
|
||||||
<a href="{% url 'longs:exam_json_unbased' pk=exam.pk %}">JSON (unbased)</a>
|
|
||||||
<a href="{% url 'longs:exam_json_recreate' pk=exam.pk %}">Refresh JSON cache</a>
|
|
||||||
<a href="{% url 'longs:refresh_exam_question_json' pk=exam.pk %}">Refresh Question JSON cache</a>
|
|
||||||
|
|
||||||
<button id='button-open-access' data-posturl="{% url 'longs:exam_json_edit' pk=exam.pk %}">Make questions open access</button>
|
|
||||||
<button id='button-closed-access' data-posturl="{% url 'longs:exam_json_edit' pk=exam.pk %}">Make questions closed access</button>
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
{% include 'exam_overview_js.html' %}
|
{% include 'exam_overview_js.html' %}
|
||||||
|
|||||||
@@ -43,18 +43,7 @@
|
|||||||
{{ author }},
|
{{ author }},
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</div>
|
</div>
|
||||||
{% if can_edit %}
|
{% include 'generic/exam_footer.html' %}
|
||||||
<p><button id='button-edit-order' title='click and drag questions to change order' data-posturl="{% url 'rapids:exam_json_edit' pk=exam.pk %}">Edit question order / Delete questions</button></p>
|
|
||||||
{% endif %}
|
|
||||||
<div>
|
|
||||||
JSON creation time: {{exam.json_creation_time}} ({{exam.json_creation_time|date:"c"}}),
|
|
||||||
JSON creation id: {{exam.exam_json_id}}
|
|
||||||
</div>
|
|
||||||
<a href="{% url 'rapids:exam_json' pk=exam.pk %}">JSON</a>
|
|
||||||
<a href="{% url 'rapids:exam_json_unbased' pk=exam.pk %}">JSON (unbased)</a>
|
|
||||||
<a href="{% url 'rapids:exam_json_recreate' pk=exam.pk %}">Refresh JSON cache</a>
|
|
||||||
<button id='button-open-access' data-posturl="{% url 'rapids:exam_json_edit' pk=exam.pk %}">Make questions open access</button>
|
|
||||||
<button id='button-closed-access' data-posturl="{% url 'rapids:exam_json_edit' pk=exam.pk %}">Make questions closed access</button>
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
{% include 'exam_overview_js.html' %}
|
{% include 'exam_overview_js.html' %}
|
||||||
|
|||||||
Reference in New Issue
Block a user