From 9a9ce11ccb08096c9643c20b199c9da8f0c33999 Mon Sep 17 00:00:00 2001 From: Ross Date: Tue, 11 Nov 2025 11:12:36 +0000 Subject: [PATCH] . --- .../anatomy/anatomyquestion_form.html | 4 +- longs/templates/longs/longseries_form.html | 460 +++++++++--------- rapids/templates/rapids/rapid_form.html | 437 +++++++++-------- shorts/templates/shorts/question_form.html | 341 +++++++------ 4 files changed, 620 insertions(+), 622 deletions(-) diff --git a/anatomy/templates/anatomy/anatomyquestion_form.html b/anatomy/templates/anatomy/anatomyquestion_form.html index 2f9d2c9c..17b5fc36 100644 --- a/anatomy/templates/anatomy/anatomyquestion_form.html +++ b/anatomy/templates/anatomy/anatomyquestion_form.html @@ -238,8 +238,8 @@ {% csrf_token %} - + {{ form|crispy }}
Drop image here diff --git a/longs/templates/longs/longseries_form.html b/longs/templates/longs/longseries_form.html index 8217f470..03e8516b 100755 --- a/longs/templates/longs/longseries_form.html +++ b/longs/templates/longs/longseries_form.html @@ -5,109 +5,109 @@ {% block js %} - - } - - -{{ form.media }} + {{ form.media }} {% endblock %} {% block content %} -

Series Form

-This form will create a image set that can be associated with a long question. If the question has already been created it can be linked below. -
- {% csrf_token %} - - - {{ form.as_table }} -
+

Series Form

+ This form will create a image set that can be associated with a long question. If the question has already been created it can be linked below. + + {% csrf_token %} + + + {{ form.as_table }} +
-

Images:

- -
Drop images here (or use the buttons below). Dropping images here will overwrite existing images in the series. When drag and dropping make sure to drag the first image or the order will not be maintained. Note: dicom images are often not exported in order (although their order can be automatically detected once uploaded) -
-
-
-
- {% for form in image_formset %} -
    - {{form.non_field_errors}} - {{form.errors}} - {{ form.as_ul }} +

    Images:

    + +
    Drop images here (or use the buttons below). Dropping images here will overwrite existing images in the series. When drag and dropping make sure to drag the first image or the order will not be maintained. Note: dicom images are often not exported in order (although their order can be automatically detected once uploaded) +
    +
    +
    +
    + {% for form in image_formset %} +
      + {{form.non_field_errors}} + {{form.errors}} + {{ form.as_ul }} +
    + {% endfor %} +
    + {{ image_formset.management_form }} + + + - {{ image_formset.management_form }} - - - -
    +
    -
    +
    {% endblock %} \ No newline at end of file diff --git a/rapids/templates/rapids/rapid_form.html b/rapids/templates/rapids/rapid_form.html index ed592538..257456db 100755 --- a/rapids/templates/rapids/rapid_form.html +++ b/rapids/templates/rapids/rapid_form.html @@ -5,14 +5,14 @@ {% block js %} - - + + -{{ form.media }} + {{ form.media }} {% endblock %} {% block content %} -{% if object %} - {% include "rapids/question_link_header.html" %} -{% endif %} - -

    Submit Rapid

    -

    -

    Instructions

    -Abnormality, Region and Laterality are used to categorise within the system (they are not used for marking). String -answers that match those added below will be used for automatic marking. Multiple images can be added to a question. -If -the feedback image box is checked they will not be displayed when taking the question. -

    + {% if object %} + {% include "rapids/question_link_header.html" %} + {% endif %} + +

    Submit Rapid

    +

    +

    Instructions

    + Abnormality, Region and Laterality are used to categorise within the system (they are not used for marking). String + answers that match those added below will be used for automatic marking. Multiple images can be added to a question. + If + the feedback image box is checked they will not be displayed when taking the question. +

    -
    + {% comment %} {% csrf_token %} {% endcomment %} - - - + + - {% crispy form form.helper %} + {% crispy form form.helper %} -
    -

    Answers:

    - -
    - {% for form in answer_formset %} -
      - {{form.non_field_errors}} - {{form.errors}} - {{ form.as_ul }} -
    - {% endfor %} -
    - {{ answer_formset.management_form }} -
    -

    Images:

    -
    Drop images here (or use the buttons below)
    +

    Answers:

    + +
    + {% for form in answer_formset %} +
      + {{form.non_field_errors}} + {{form.errors}} + {{ form.as_ul }} +
    + {% endfor %} +
    + {{ answer_formset.management_form }} +
    +

    Images:

    +
    Drop images here (or use the buttons below)
    Feedback image?
    drop those here
    -
    -
    - -
    - {% for form in image_formset %} -
      - {{form.non_field_errors}} - {{form.errors}} - {{ form.as_ul }} +
      +
    + +
    + {% for form in image_formset %} +
      + {{form.non_field_errors}} + {{form.errors}} + {{ form.as_ul }} +
    + {% endfor %} +
    + {{ image_formset.management_form }} + + + + - {{ image_formset.management_form }} - - - - - + {% endblock %} {% block css %} - + {% endblock css %} - \ No newline at end of file diff --git a/shorts/templates/shorts/question_form.html b/shorts/templates/shorts/question_form.html index 8c14e76b..d581805b 100755 --- a/shorts/templates/shorts/question_form.html +++ b/shorts/templates/shorts/question_form.html @@ -5,14 +5,14 @@ {% block js %} - + -{{ form.media }} + {{ form.media }} {% endblock %} {% block content %} -{% if object %} - {% include "shorts/question_link_header.html" %} -{% endif %} - -

    Submit Shorts Question

    -

    Instructions

    -

    -Use this form to create a new short style question/case. Multiple images can be added to a question. -If the feedback image box is checked they will not be displayed when taking the question. -

    -

    Once you have created the question with this form you can add relevant findings. -

    + {% if object %} + {% include "shorts/question_link_header.html" %} + {% endif %} + +

    Submit Shorts Question

    +

    Instructions

    +

    + Use this form to create a new short style question/case. Multiple images can be added to a question. + If the feedback image box is checked they will not be displayed when taking the question. +

    +

    Once you have created the question with this form you can add relevant findings. +

    -
    + {% comment %} {% csrf_token %} {% endcomment %} - + - {% crispy form form.helper %} + {% crispy form form.helper %} -

    Images:

    -
    Drop images here (or use the buttons below)
    Images: +
    Drop images here (or use the buttons below)
    Feedback image?
    drop those here
    -
    -
    - -
    - {% for form in image_formset %} -
      - {{form.non_field_errors}} - {{form.errors}} - {{ form.as_ul }} +
      +
    + +
    + {% for form in image_formset %} +
      + {{form.non_field_errors}} + {{form.errors}} + {{ form.as_ul }} +
    + {% endfor %} +
    + {{ image_formset.management_form }} + + + + - {{ image_formset.management_form }} - - - - - + {% endblock %} {% block css %} - + {% endblock css %} - \ No newline at end of file