diff --git a/anatomy/static/css/anatomy.css b/anatomy/static/css/anatomy.css
index cc458644..1d8249f2 100644
--- a/anatomy/static/css/anatomy.css
+++ b/anatomy/static/css/anatomy.css
@@ -139,6 +139,16 @@ button a {
padding: 20px
}
+#full-question-list li{
+ padding-bottom: 20px
+}
+
+#full-question-list img{
+ float: left;
+ padding-right: 20px;
+ padding-left: 10px;
+}
+
#question-mark-list a {
color: #bbe1fa
}
@@ -151,4 +161,9 @@ button a {
float: right;
position: sticky;
top: 30px;
+}
+
+#save-annotations {
+ position: absolute;
+ left: 0;
}
\ No newline at end of file
diff --git a/anatomy/templates/anatomy/base.html b/anatomy/templates/anatomy/base.html
index 76d82521..1bef86ee 100644
--- a/anatomy/templates/anatomy/base.html
+++ b/anatomy/templates/anatomy/base.html
@@ -4,7 +4,9 @@
Anatomy Quiz
+
+
diff --git a/anatomy/templates/anatomy/exam_overview.html b/anatomy/templates/anatomy/exam_overview.html
index 1954d81f..9ce9e36e 100644
--- a/anatomy/templates/anatomy/exam_overview.html
+++ b/anatomy/templates/anatomy/exam_overview.html
@@ -8,28 +8,32 @@
This exam has {{question_number}} questions.
-Exam active:
+ Exam active:
-
- {% for question in questions.all %}
+
+ {% for question in questions.all %}
-- {{ question.description }}: {{ question.GetPrimaryAnswer }}
-
-Modality: {{ question.modality }}
-
+ -
+
+ {{ question.description }}
+
+ {{ question.question_type }}: {{ question.GetPrimaryAnswer }}
+
+ Modality: {{ question.modality }}, View
+
{% endfor %}
-
-JSON
-Refresh JSON cache
+
+ JSON
+ Refresh JSON cache
diff --git a/anatomy/templates/anatomy/question_detail.html b/anatomy/templates/anatomy/question_detail.html
index 25d8ebbc..a48df965 100644
--- a/anatomy/templates/anatomy/question_detail.html
+++ b/anatomy/templates/anatomy/question_detail.html
@@ -2,11 +2,11 @@
{% block content %}
{% load static %}
+
-
Created: {{ question.created_date }}
@@ -44,6 +44,11 @@
console.log(data);
// show some message according to the response.
// For eg. A message box showing that the status has been changed
+ if (data.success) {
+ toastr.info('Annotations saved')
+ } else {
+ toastr.warn('Error saving annotations')
+ }
})
.always(function () {
console.log('[Done]');
diff --git a/anatomy/views.py b/anatomy/views.py
index e6de161a..169f6715 100644
--- a/anatomy/views.py
+++ b/anatomy/views.py
@@ -512,7 +512,7 @@ def exam_json(request, pk):
"title": "{}".format(q.description),
"question": str(q.question_type),
"images": [image_as_base64(q.image)],
- "annotations": [q.image_annotations],
+ "annotations": [str(q.image_annotations)],
"type": "anatomy",
}