From 55cb59936410bb6223bf92128f8bb31cd9d0feec Mon Sep 17 00:00:00 2001 From: Ross Date: Mon, 7 Dec 2020 23:52:29 +0000 Subject: [PATCH] let (non admin) users mark --- anatomy/static/css/anatomy.css | 4 ++++ anatomy/templates/anatomy/mark.html | 1 + .../templates/anatomy/question_detail.html | 19 ++++++++++++++++++- anatomy/views.py | 4 ++-- 4 files changed, 25 insertions(+), 3 deletions(-) diff --git a/anatomy/static/css/anatomy.css b/anatomy/static/css/anatomy.css index f9b9385a..3042477e 100644 --- a/anatomy/static/css/anatomy.css +++ b/anatomy/static/css/anatomy.css @@ -275,4 +275,8 @@ img.uploading:hover { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(142, 68, 173, 0); } +} + +#annotation-json-content { + display: none; } \ No newline at end of file diff --git a/anatomy/templates/anatomy/mark.html b/anatomy/templates/anatomy/mark.html index c8fd5eb5..57e5f4eb 100644 --- a/anatomy/templates/anatomy/mark.html +++ b/anatomy/templates/anatomy/mark.html @@ -2,6 +2,7 @@ {% block content %}

Marking question {{question_details.current}} of {{question_details.total}}

+Edit Admin Edit

{{ question.question_type }}

diff --git a/anatomy/templates/anatomy/question_detail.html b/anatomy/templates/anatomy/question_detail.html index 923c1be7..bdddd552 100644 --- a/anatomy/templates/anatomy/question_detail.html +++ b/anatomy/templates/anatomy/question_detail.html @@ -18,6 +18,9 @@ Answers (score): {% for answer in question.answers.all %} {{ answer }} ({{answer.status}}), {% endfor %} +
+ Description: {{ question.description }} +
Examinations: {% for exam in question.exams.all %} {{ exam.name }} @@ -30,11 +33,25 @@ Region: {{ question.region }}
- Annotation JSON: {{ question.image_annotations }} + Structure: {{ question.structure }} +
+
+ Body Part: {{ question.body_part }} +
+
+ Author: {% for user in question.author.all %} + {{ author }}, + {% endfor %} +
+
+ Annotation JSON (+/-):
{{ question.image_annotations }}