.
This commit is contained in:
@@ -11,12 +11,12 @@
|
|||||||
<h1>Exam: {{ exam.name }}</h1>
|
<h1>Exam: {{ exam.name }}</h1>
|
||||||
This exam has {{question_number}} questions. Time limit: {{exam.time_limit}} seconds.<br />
|
This exam has {{question_number}} questions. Time limit: {{exam.time_limit}} seconds.<br />
|
||||||
<div class="parent-help" title="">
|
<div class="parent-help" title="">
|
||||||
Normal count: {{ exam.get_normal_abnormal_breakdown }}<span
|
Normal count: {{ exam.get_normal_abnormal_breakdown }}<span class="help-text">[Number of normal questions within
|
||||||
class="help-text">[Number of normal questions within the exam]</span>
|
the exam]</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="parent-help" title="">
|
<div class="parent-help" title="">
|
||||||
Exam mode: {{ exam.exam_mode }}<span
|
Exam mode: {{ exam.exam_mode }}<span class="help-text">[When true the packet will be taken as an exam (it will
|
||||||
class="help-text">[When true the packet will be taken as an exam (it will not self mark and results will be saved here)]</span>
|
not self mark and results will be saved here)]</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="parent-help" title="Click to enable / disable the exam">
|
<div class="parent-help" title="Click to enable / disable the exam">
|
||||||
@@ -37,24 +37,24 @@
|
|||||||
|
|
||||||
<li data-question_pk={{question.pk}}>
|
<li data-question_pk={{question.pk}}>
|
||||||
<span class="flex-col">
|
<span class="flex-col">
|
||||||
<a href="{% url 'rapids:exam_question_detail' pk=exam.pk sk=forloop.counter0 %}">
|
<a href="{% url 'rapids:exam_question_detail' pk=exam.pk sk=forloop.counter0 %}">
|
||||||
{% for image in question.get_images %}
|
{% for image in question.get_images %}
|
||||||
<img src="{{ image|thumbnail_url:'exam-list' }}" alt="thumbail" />
|
<img src="{{ image|thumbnail_url:'exam-list' }}" alt="thumbail" />
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</a>
|
</a>
|
||||||
</span>
|
</span>
|
||||||
<span class="flex-col-4">
|
<span class="flex-col-4">
|
||||||
{% if not question.normal %}
|
{% if not question.normal %}
|
||||||
<b>Abnormality:</b> {{ question.get_abnormalities }} <b>Region:</b> {{ question.get_regions }}
|
<b>Abnormality:</b> {{ question.get_abnormalities }} <b>Region:</b> {{ question.get_regions }}
|
||||||
<br />
|
<br />
|
||||||
{{ question.get_primary_answer }}
|
{{ question.get_primary_answer }}
|
||||||
{% else %}
|
{% else %}
|
||||||
<b>Normal</b>
|
<b>Normal</b>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<br />
|
<br />
|
||||||
Examination: {{ question.get_examinations }}, <a
|
Examination: {{ question.get_examinations }}, <a
|
||||||
href="{% url 'rapids:question_detail' pk=question.pk %}">View</a>, <a
|
href="{% url 'rapids:question_detail' pk=question.pk %}">View</a>, <a
|
||||||
href="{% url 'rapids:mark' pk=exam.pk sk=forloop.counter0 %}">Mark</a>
|
href="{% url 'rapids:mark' pk=exam.pk sk=forloop.counter0 %}">Mark</a>
|
||||||
[id: {{question.pk}}]
|
[id: {{question.pk}}]
|
||||||
</span>
|
</span>
|
||||||
</li>
|
</li>
|
||||||
@@ -65,7 +65,7 @@
|
|||||||
{{ author }},
|
{{ author }},
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</div>
|
</div>
|
||||||
<p><button id='button-edit-order'>Edit exam order</button></p>
|
<p><button id='button-edit-order' title='click and drag questions to change order'>Edit exam order</button></p>
|
||||||
<div>
|
<div>
|
||||||
JSON creation time: {{exam.json_creation_time}} ({{exam.json_creation_time|date:"c"}}),
|
JSON creation time: {{exam.json_creation_time}} ({{exam.json_creation_time|date:"c"}}),
|
||||||
JSON creation id: {{exam.exam_json_id}}
|
JSON creation id: {{exam.exam_json_id}}
|
||||||
@@ -189,10 +189,14 @@
|
|||||||
sortable('.sortable');
|
sortable('.sortable');
|
||||||
|
|
||||||
$("#full-question-list li").each((n, el) => {
|
$("#full-question-list li").each((n, el) => {
|
||||||
$(el).append($("<span class='exam-question-delete flex-col'>[DELETE]</span>").click(() => {el.remove();}));
|
$(el).append($(
|
||||||
})
|
"<span class='exam-question-delete flex-col'><button>DELETE</button></span>"
|
||||||
|
).click(() => {
|
||||||
|
el.remove();
|
||||||
|
}));
|
||||||
|
})
|
||||||
|
|
||||||
$("#full-question-list").append($("<button>Save exam order</button>").click(() => {
|
$("#full-question-list").append($("<button title='click and drag questions to change order'>Save exam order</button>").click(() => {
|
||||||
new_order = [];
|
new_order = [];
|
||||||
$("#full-question-list li").each((n, el) => {
|
$("#full-question-list li").each((n, el) => {
|
||||||
new_order.push(el.dataset.question_pk)
|
new_order.push(el.dataset.question_pk)
|
||||||
|
|||||||
Reference in New Issue
Block a user