From 272046142eab6c6b03cd8e8fb1b67501a201d8ab Mon Sep 17 00:00:00 2001 From: moanos Date: Wed, 30 Oct 2024 17:57:58 +0100 Subject: [PATCH] refactor: Move card of AN check to partial --- .../partial-check-adoption-notice.html | 28 +++++++++++++++ .../fellchensammlung/updatequeue.html | 34 ++++--------------- 2 files changed, 34 insertions(+), 28 deletions(-) create mode 100644 src/fellchensammlung/templates/fellchensammlung/partials/partial-check-adoption-notice.html diff --git a/src/fellchensammlung/templates/fellchensammlung/partials/partial-check-adoption-notice.html b/src/fellchensammlung/templates/fellchensammlung/partials/partial-check-adoption-notice.html new file mode 100644 index 0000000..3f7ccaa --- /dev/null +++ b/src/fellchensammlung/templates/fellchensammlung/partials/partial-check-adoption-notice.html @@ -0,0 +1,28 @@ +{% load i18n %} +{% load custom_tags %} +
+

+ {{ adoption_notice.name }} +

+ {% if adoption_notice.further_information %} +

{% translate "Externe Quelle" %}: {{ adoption_notice.link_to_more_information | safe }}

+ {% endif %} +
+
+ {% csrf_token %} + + + +
+
+ {% csrf_token %} + + + +
+
+
\ No newline at end of file diff --git a/src/fellchensammlung/templates/fellchensammlung/updatequeue.html b/src/fellchensammlung/templates/fellchensammlung/updatequeue.html index 43d8078..372a2ac 100644 --- a/src/fellchensammlung/templates/fellchensammlung/updatequeue.html +++ b/src/fellchensammlung/templates/fellchensammlung/updatequeue.html @@ -3,32 +3,10 @@ {% block content %}

{% translate "Aktualitätscheck" %}

{% translate "Überprüfe ob Vermittlungen noch aktuell sind" %}

- {% for adoption_notice in adoption_notices %} -
-

- {{ adoption_notice.name }} -

- {% if adoption_notice.further_information %} -

{% translate "Externe Quelle" %}: {{ adoption_notice.link_to_more_information | safe }}

- {% endif %} -
-
- {% csrf_token %} - - - -
-
- {% csrf_token %} - - - -
-
-
- {% endfor %} +
+

{% translate 'Vermittlungen zur Überprüfung' %}

+ {% for adoption_notice in adoption_notices %} + {% include "fellchensammlung/partials/partial-check-adoption-notice.html" %} + {% endfor %} +
{% endblock %}