.
This commit is contained in:
@@ -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]');
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -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">
|
||||||
|
|||||||
Reference in New Issue
Block a user