From 9ebcd24938327699684f36e10bd020afa944fbef Mon Sep 17 00:00:00 2001 From: Ross Date: Tue, 11 Nov 2025 11:12:03 +0000 Subject: [PATCH] Refactor image link paths in forms to ensure consistent static file referencing across anatomy, atlas, longs, rapids, and shorts templates. --- anatomy/templates/anatomy/anatomyquestion_form.html | 6 +++--- atlas/templates/atlas/series_form.html | 2 +- longs/templates/longs/longseries_form.html | 2 +- rapids/templates/rapids/rapid_form.html | 6 +++--- shorts/templates/shorts/question_form.html | 2 +- 5 files changed, 9 insertions(+), 9 deletions(-) diff --git a/anatomy/templates/anatomy/anatomyquestion_form.html b/anatomy/templates/anatomy/anatomyquestion_form.html index 6e97fb31..2f9d2c9c 100644 --- a/anatomy/templates/anatomy/anatomyquestion_form.html +++ b/anatomy/templates/anatomy/anatomyquestion_form.html @@ -237,9 +237,9 @@
{% csrf_token %} - + onclick="return showAddPopup(this);"> + {{ form|crispy }}
Drop image here diff --git a/atlas/templates/atlas/series_form.html b/atlas/templates/atlas/series_form.html index 663e0cce..f3304e59 100755 --- a/atlas/templates/atlas/series_form.html +++ b/atlas/templates/atlas/series_form.html @@ -267,7 +267,7 @@ {% csrf_token %} + onclick="return showAddPopup(this);"> {{ form.as_table }}
diff --git a/longs/templates/longs/longseries_form.html b/longs/templates/longs/longseries_form.html index f843c29f..8217f470 100755 --- a/longs/templates/longs/longseries_form.html +++ b/longs/templates/longs/longseries_form.html @@ -322,7 +322,7 @@ This form will create a image set that can be associated with a long question. I {% csrf_token %} + onclick="return showAddPopup(this);"> {{ form.as_table }}
diff --git a/rapids/templates/rapids/rapid_form.html b/rapids/templates/rapids/rapid_form.html index c0927220..ed592538 100755 --- a/rapids/templates/rapids/rapid_form.html +++ b/rapids/templates/rapids/rapid_form.html @@ -334,11 +334,11 @@ the feedback image box is checked they will not be displayed when taking the que {% comment %} {% csrf_token %} {% endcomment %} + onclick="return showAddPopup(this);"> + onclick="return showAddPopup(this);"> + src="{% static 'img/icon-addlink.svg' %}"> {% crispy form form.helper %} diff --git a/shorts/templates/shorts/question_form.html b/shorts/templates/shorts/question_form.html index 5601c0a6..8c14e76b 100755 --- a/shorts/templates/shorts/question_form.html +++ b/shorts/templates/shorts/question_form.html @@ -291,7 +291,7 @@ If the feedback image box is checked they will not be displayed when taking the {% comment %} {% csrf_token %} {% endcomment %} + onclick="return showAddPopup(this);"> {% crispy form form.helper %}