From 71b8ec86dd831b31a8acbfe6168e3089ff917e4e Mon Sep 17 00:00:00 2001 From: Ross Date: Mon, 25 Jan 2021 15:51:29 +0000 Subject: [PATCH] . --- rapids/templates/rapids/rapid_detail.html | 12 ++++---- .../templates/rapids/rapid_display_block.html | 28 +++++++++---------- rapids/views.py | 6 ++-- 3 files changed, 23 insertions(+), 23 deletions(-) diff --git a/rapids/templates/rapids/rapid_detail.html b/rapids/templates/rapids/rapid_detail.html index 742d02e9..3768b778 100755 --- a/rapids/templates/rapids/rapid_detail.html +++ b/rapids/templates/rapids/rapid_detail.html @@ -7,20 +7,20 @@
{% if previous > -1 %} -Previous question +Previous question {% endif %} This question is part of exam: {{exam.name}} [{{pos}}/{{exam_length}}] {% if next %} -Next question +Next question {% endif %}
{% endif %} -Edit -Clone - Add Note +Edit +Clone + Add Note {% if request.user.is_superuser %} -Admin Edit +Admin Edit {% endif %} {% include 'rapids/rapid_display_block.html' %} {% endblock %} \ No newline at end of file diff --git a/rapids/templates/rapids/rapid_display_block.html b/rapids/templates/rapids/rapid_display_block.html index 12b2ab6e..ee9b64f5 100755 --- a/rapids/templates/rapids/rapid_display_block.html +++ b/rapids/templates/rapids/rapid_display_block.html @@ -1,32 +1,32 @@ -
+
- {{ rapid.created_date }} + {{ question.created_date }}
-

Rapid: {{ rapid }}

-

Region: {{ rapid.get_regions }}

-

Examination: {{ rapid.get_examinations }}

-

Laterality: {{ rapid.laterality }}

-

Abnormality: {{ rapid.get_abnormalities }}

+

Rapid: {{ question }}

+

Region: {{ question.get_regions }}

+

Examination: {{ question.get_examinations }}

+

Laterality: {{ question.laterality }}

+

Abnormality: {{ question.get_abnormalities }}

Images: - {% for image in rapid.images.all %} + {% for image in question.images.all %} Image {{ forloop.counter }}{% if image.feedback_image %} [feedback image]{% endif %}:

{% endfor %}

-

Feedback: {{ rapid.feedback }}

-

Author(s): {% for author in rapid.author.all %} Feedback: {{ question.feedback }}

+

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

-

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

-

Scrapped: {{ rapid.scrapped }} (toggle) -

Answers: {{ rapid.GetMarkedAnswers }}

+

Scrapped: {{ question.scrapped }} (toggle) +

Answers: {{ question.GetMarkedAnswers }}

Notes:
    - {% for note in rapid.rapid_notes.all %} + {% for note in question.rapid_notes.all %}
  • {{ note.created_on }} by {{ note.author }}: {{ note.note }}
  • diff --git a/rapids/views.py b/rapids/views.py index 6f5bafd1..1ec19a35 100755 --- a/rapids/views.py +++ b/rapids/views.py @@ -91,7 +91,7 @@ def rapid_detail(request, pk): # logging.debug(rapid.rapid_notes.first()) # logging.debug(rapid.subspecialty.first().name.all()) - return render(request, "rapids/rapid_detail.html", {"rapid": rapid}) + return render(request, "rapids/rapid_detail.html", {"question": rapid}) @login_required @@ -129,7 +129,7 @@ def rapid_split(request, pk): # logging.debug(rapid.rapid_notes.first()) # logging.debug(rapid.subspecialty.first().name.all()) - return render(request, "rapids/rapid_detail.html", {"rapid": rapid}) + return render(request, "rapids/rapid_detail.html", {"question": rapid}) @login_required @@ -1040,7 +1040,7 @@ def exam_question_detail(request, pk, sk): request, "rapids/rapid_detail.html", { - "rapid": question, + "question": question, "exam": exam, "next": next, "previous": previous,