This commit is contained in:
Ross
2021-05-01 13:46:41 +01:00
parent 547aa50ecc
commit 3a530bfeeb
2 changed files with 13 additions and 2 deletions
+12 -1
View File
@@ -35,11 +35,16 @@
</li> </li>
{% endfor %} {% endfor %}
</ol> </ol>
<div>
Author: {% for author in exam.author.all %}
{{ author }},
{% endfor %}
</div>
<p><button id='button-edit-order'>Edit exam order</button></p>
<a href="{% url 'anatomy:exam_json' pk=exam.pk %}">JSON</a> <a href="{% url 'anatomy:exam_json' pk=exam.pk %}">JSON</a>
<a href="{% url 'anatomy:exam_json_recreate' pk=exam.pk %}">Refresh JSON cache</a> <a href="{% url 'anatomy:exam_json_recreate' pk=exam.pk %}">Refresh JSON cache</a>
<button id='button-open-access'>Make questions open access</button> <button id='button-open-access'>Make questions open access</button>
<button id='button-closed-access'>Make questions closed access</button> <button id='button-closed-access'>Make questions closed access</button>
<button id='button-edit-order'>Edit exam order</button>
</div> </div>
<script type="text/javascript"> <script type="text/javascript">
@@ -113,6 +118,9 @@
toastr.info('Question access state changed.') toastr.info('Question access state changed.')
} }
}) })
.fail((e) => {
toastr.warning(`Error, ${e}`);
})
.always(function () { .always(function () {
console.log('[Done]'); console.log('[Done]');
}) })
@@ -138,6 +146,9 @@
toastr.info('Question access state changed.') toastr.info('Question access state changed.')
} }
}) })
.fail((e) => {
toastr.warning(`Error, ${e}`);
})
.always(function () { .always(function () {
console.log('[Done]'); console.log('[Done]');
}) })
+1 -1
View File
@@ -46,12 +46,12 @@
{{ author }}, {{ author }},
{% endfor %} {% endfor %}
</div> </div>
<p><button id='button-edit-order'>Edit exam order</button></p>
<a href="{% url 'rapids:exam_json' pk=exam.pk %}">JSON</a> <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_unbased' pk=exam.pk %}">JSON (unbased)</a>
<a href="{% url 'rapids:exam_json_recreate' pk=exam.pk %}">Refresh JSON cache</a> <a href="{% url 'rapids:exam_json_recreate' pk=exam.pk %}">Refresh JSON cache</a>
<button id='button-open-access'>Make questions open access</button> <button id='button-open-access'>Make questions open access</button>
<button id='button-closed-access'>Make questions closed access</button> <button id='button-closed-access'>Make questions closed access</button>
<button id='button-edit-order'>Edit exam order</button>
</div> </div>
<script type="text/javascript"> <script type="text/javascript">