.
This commit is contained in:
@@ -2,7 +2,9 @@
|
|||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<div class="question-display-block">
|
<div class="question-display-block">
|
||||||
Question <span class="question-number">1</span>
|
Question <span class="question-number">1</span><br/>
|
||||||
|
History: <span id="history"></span>
|
||||||
|
Images: <span id="series"></span>
|
||||||
<div id="single-dicom-viewer" class="dicom-viewer" data-images="" data-annotations=''>
|
<div id="single-dicom-viewer" class="dicom-viewer" data-images="" data-annotations=''>
|
||||||
</div>
|
</div>
|
||||||
<div class="answers">Answers: </div>
|
<div class="answers">Answers: </div>
|
||||||
@@ -82,6 +84,12 @@
|
|||||||
$(".question-display-block .answers").empty().append(data.answers.toString());
|
$(".question-display-block .answers").empty().append(data.answers.toString());
|
||||||
n = parseInt(question_number) + 1
|
n = parseInt(question_number) + 1
|
||||||
$(".question-display-block .question-number").empty().append(n);
|
$(".question-display-block .question-number").empty().append(n);
|
||||||
|
$("#history").empty().append(data.title);
|
||||||
|
$("#series").empty();
|
||||||
|
data.image_titles.forEach((element, index) => {
|
||||||
|
$("#series").append(`<span>${index}: ${element}</span>`);
|
||||||
|
|
||||||
|
})
|
||||||
// show some message according to the response.
|
// show some message according to the response.
|
||||||
// For eg. A message box showing that the status has been changed
|
// For eg. A message box showing that the status has been changed
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user