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