diff --git a/anatomy/templates/anatomy/question_detail.html b/anatomy/templates/anatomy/question_detail.html index 95f449dc..6a3d78bc 100644 --- a/anatomy/templates/anatomy/question_detail.html +++ b/anatomy/templates/anatomy/question_detail.html @@ -40,9 +40,25 @@

{{ question.get_primary_answer }}

{{question.question_type}}

- Answers (score): {% for answer in question.answers.all %} - {{ answer }} ({{answer.status}}), - {% endfor %} +
+ + Answers: + + + + {% for answer in question.answers.all|dictsortreversed:"status" %} + + + + {% endfor %} +
AnswerScore
+ + {{ answer }} + + + {{answer.status}}
+
Description: {{ question.description }}
diff --git a/generic/templates/generic/user_creation_form.html b/generic/templates/generic/user_creation_form.html index bf65f7b6..d0c02f22 100755 --- a/generic/templates/generic/user_creation_form.html +++ b/generic/templates/generic/user_creation_form.html @@ -14,7 +14,7 @@ {% endblock %} {% block content %}

Edit User / {{ciduser.cid}}

-Use this form to create a user. Only existing supervisors can be added (create it first or add it later if it does not exist). +Use this form to create a user. Only existing supervisors can be added (create them first and refresh this page or add them later if they do not exist). {% if errors %} {% endif %} diff --git a/rad/views.py b/rad/views.py index 1fb41b44..19ca4f0e 100644 --- a/rad/views.py +++ b/rad/views.py @@ -556,11 +556,13 @@ class UserListTableView(CidManagerRequiredMixin, SingleTableMixin, FilterView): # context["cid_user_groups"] = cid_user_groups return context + class DeleteUserView(CidManagerRequiredMixin, DeleteView): model = User template_name: str = "confirm_delete.html" success_url = reverse_lazy("accounts_list") + class UpdateUserView(CidManagerRequiredMixin, UpdateView): model = User fields = ["first_name", "last_name", "email"] # Keep listing whatever fields diff --git a/rapids/templates/rapids/question_display_block.html b/rapids/templates/rapids/question_display_block.html index c9e01a84..69335e41 100755 --- a/rapids/templates/rapids/question_display_block.html +++ b/rapids/templates/rapids/question_display_block.html @@ -9,7 +9,7 @@

Rapid: {{ question }}

Normal: {{ question.normal }}

+ class="toggle-button">toggle

Region: {{ question.get_regions }}

Examination: {{ question.get_examinations }}

Laterality: {{ question.laterality }} @@ -21,16 +21,16 @@

Abnormality: {{ question.get_abnormalities }}

Images: {% for image in question.images.all %} - - Image {{ forloop.counter }}{% if image.description %} ({{image.description}}){% endif %}{% if image.feedback_image %} [feedback image]{% endif %}: -
-
+ + Image {{ forloop.counter }}{% if image.description %} ({{image.description}}){% endif %}{% if image.feedback_image %} [feedback image]{% endif %}: +
+
{% endfor %}
Exam(s): {% for exam in question.exams.all %} - {{ exam.name }}, + {{ exam.name }}, {% endfor %}
{% if view_feedback %} - {% include 'question_notes.html' %} - {% if not question.normal %} -
- - Suggested answers - - -
- {% endif %} + {% include 'question_notes.html' %} + {% if not question.normal %} +
+ + Suggested answers + + +
+ {% endif %} {% endif %}
@@ -91,13 +104,13 @@ Image annotations: {% for image in question.images.all %} - - Image {{ forloop.counter }}: {{image.image_annotations}}
-
+ + Image {{ forloop.counter }}: {{image.image_annotations}}
+
{% endfor %} - Anonymise dicoms
+Anonymise dicoms