From 02f56810043b9ddcc61f1dd42d6ba24f1d198620 Mon Sep 17 00:00:00 2001 From: Ross Date: Thu, 25 Nov 2021 17:49:39 +0000 Subject: [PATCH] . --- atlas/templates/atlas/case_display_block.html | 26 +++++++++---------- atlas/templates/atlas/series_viewer.html | 6 ++--- atlas/views.py | 4 +-- 3 files changed, 18 insertions(+), 18 deletions(-) diff --git a/atlas/templates/atlas/case_display_block.html b/atlas/templates/atlas/case_display_block.html index 9812732c..c99f3def 100755 --- a/atlas/templates/atlas/case_display_block.html +++ b/atlas/templates/atlas/case_display_block.html @@ -1,16 +1,16 @@ -
+
- {{ question.created_date|date:"d/m/Y" }} + {{ case.created_date|date:"d/m/Y" }}
- ID: {{ question.id }} + ID: {{ case.id }}
-

Description: {{ question.description }}

+

Description: {{ case.description }}

-

History: {{ question.history }}

+

History: {{ case.history }}

Series: - {% for series in question.series.all %} + {% for series in case.series.all %} Series {{ forloop.counter }}: @@ -23,25 +23,25 @@ {% endfor %} - Add new series
+ Add new series
-

Author(s): {% for author in question.author.all %} Author(s): {% for author in case.author.all %} {{author}}, {% endfor %}

-

Checked by: {% for verified in question.verified.all %} Checked by: {% for verified in case.verified.all %} {{verified}}, {% endfor %}

- {% comment %}

Scrapped: {{ question.scrapped }} (toggle) {% endcomment %} + {% comment %}

Scrapped: {{ case.scrapped }} (toggle) {% endcomment %}

Findings -
{{ question.findings | safe}}
+
{{ case.findings | safe}}

- {% include 'question_notes.html' %} + {% include 'case_notes.html' %}
\ No newline at end of file diff --git a/atlas/templates/atlas/series_viewer.html b/atlas/templates/atlas/series_viewer.html index 017f6da7..41fc403c 100755 --- a/atlas/templates/atlas/series_viewer.html +++ b/atlas/templates/atlas/series_viewer.html @@ -1,9 +1,9 @@
{{ series.modality}}, {{ series.examination }}, {{ series.plane }}, {{ series.contrast }}
-{% if series.atlas %} +{% if series.case %} Associated case: -{% for atlas in series.atlas.all %} -{{atlas}} +{% for case in series.case.all %} +{{case}} {% endfor %} {% else %} This series is not associated with any cases. diff --git a/atlas/views.py b/atlas/views.py index 1e06b640..2e544b40 100755 --- a/atlas/views.py +++ b/atlas/views.py @@ -96,13 +96,13 @@ class AuthorOrCheckerRequiredMixin(object): @login_required @user_is_author_or_atlas_checker_or_atlas_marker def case_detail(request, pk): - atlas = get_object_or_404(Case, pk=pk) + case = get_object_or_404(Case, pk=pk) # if request.user not in atlas.author.all(): # raise PermissionDenied # logging.debug(atlas.subspecialty.first().name.all()) - return render(request, "atlas/case_detail.html", {"question": atlas}) + return render(request, "atlas/case_detail.html", {"case": case}) @login_required