.
This commit is contained in:
@@ -2,8 +2,8 @@
|
||||
|
||||
{% block content %}
|
||||
|
||||
{% load thumbnail %}
|
||||
<div class="longs">
|
||||
{% load thumbnail %}
|
||||
<div class="longs">
|
||||
<a href="{% url 'longs:exam_update' exam.id %}" title="Edit the Exam">Edit</a>
|
||||
<a href="{% url 'longs:exam_delete' exam.id %}" title="Delete the Exam">Delete</a>
|
||||
{% if request.user.is_superuser %}
|
||||
@@ -46,7 +46,8 @@
|
||||
<a href="{% url 'longs:exam_question_detail' exam.id forloop.counter0 %}"
|
||||
title="View the question">View</a> / <a href="{% url 'longs:long_update' question.id %}"
|
||||
title="Edit the question">Edit</a>
|
||||
<span class="id">[id: {{question.pk}}]</span>
|
||||
<span class="id"><a href="{% url 'longs:question_detail' question.id %}">[id:
|
||||
{{question.pk}}]</a></span>
|
||||
</div>
|
||||
</span>
|
||||
<span class="flex-col-3">
|
||||
@@ -85,8 +86,8 @@
|
||||
<button id='button-closed-access'>Make questions closed access</button>
|
||||
{% endif %}
|
||||
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
// send request to change the is_private state on customSwitches toggle
|
||||
$("#exam-active-switch").on("change", function () {
|
||||
@@ -213,5 +214,5 @@
|
||||
}));
|
||||
});
|
||||
});
|
||||
</script>
|
||||
</script>
|
||||
{% endblock %}
|
||||
@@ -59,6 +59,7 @@
|
||||
|
||||
{% if view_feedback %}
|
||||
{% include 'question_notes.html' %}
|
||||
{% if not question.normal %}
|
||||
<details>
|
||||
<summary>
|
||||
Suggested answers
|
||||
@@ -70,6 +71,7 @@
|
||||
</ul>
|
||||
</details>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
</div>
|
||||
|
||||
<details open>
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
{% if notes %}
|
||||
<div class="alert alert-warning" role="alert">
|
||||
<div class="alert alert-warning" role="alert">
|
||||
The following questions have active notes
|
||||
<ul>
|
||||
{% for note in notes %}
|
||||
<li>{{note.get_author_str}}: <a href="{{note.get_object_url}}">{{note.get_short_str}}</a></li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
Reference in New Issue
Block a user