.
This commit is contained in:
@@ -1,18 +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>
|
||||
<button id='button-edit-order' title='click and drag questions to change order' data-posturl="{% url exam.get_app_name|add:':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>
|
||||
<a href="{% url exam.get_app_name|add:':exam_json' pk=exam.pk %}">JSON</a>
|
||||
<a href="{% url exam.get_app_name|add:':exam_json_unbased' pk=exam.pk %}">JSON (unbased)</a>
|
||||
<a href="{% url exam.get_app_name|add:':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>
|
||||
<button id='button-open-access' data-posturl="{% url exam.get_app_name|add:':exam_json_edit' pk=exam.pk %}">Make questions open access</button>
|
||||
<button id='button-closed-access' data-posturl="{% url exam.get_app_name|add:':exam_json_edit' pk=exam.pk %}">Make questions closed access</button>
|
||||
{% endif %}
|
||||
</details>
|
||||
{% endif %}
|
||||
Reference in New Issue
Block a user