From 36c90531a88e7f5e7fd3de2a166bebffdc648a47 Mon Sep 17 00:00:00 2001 From: moanos Date: Sun, 20 Jul 2025 13:42:56 +0200 Subject: [PATCH] feat: Add option to switch between normal and dq --- .../fellchensammlung/rescue-organization-check.html | 9 ++++++++- src/fellchensammlung/views.py | 3 ++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/src/fellchensammlung/templates/fellchensammlung/rescue-organization-check.html b/src/fellchensammlung/templates/fellchensammlung/rescue-organization-check.html index 60b8f84..aa3a0b0 100644 --- a/src/fellchensammlung/templates/fellchensammlung/rescue-organization-check.html +++ b/src/fellchensammlung/templates/fellchensammlung/rescue-organization-check.html @@ -2,7 +2,7 @@ {% load i18n %} {% block content %}

{% translate "Aktualitätscheck" %}

-

{% translate "Überprüfe ob es in Tierheimen neue Tiere gibt die ein Zuhause suchen" %}

+

{% translate "Überprüfe ob es in Tierheimen neue Tiere gibt die ein Zuhause suchen" %}

@@ -15,6 +15,13 @@
Geprüft sind {{ percentage_checked|stringformat:"0.2f" }}%
+
diff --git a/src/fellchensammlung/views.py b/src/fellchensammlung/views.py index 2b3ccf5..fd1f9da 100644 --- a/src/fellchensammlung/views.py +++ b/src/fellchensammlung/views.py @@ -848,6 +848,7 @@ def rescue_organization_check(request, context=None): context["percentage_checked"] = percentage_checked context["num_rescue_orgs_checked"] = num_rescue_orgs_checked context["rescue_orgs_with_ongoing_communication"] = rescue_orgs_with_ongoing_communication + context["set_internal_comment_available"] = True return render(request, 'fellchensammlung/rescue-organization-check.html', context=context) @@ -858,7 +859,7 @@ def rescue_organization_check_dq(request): DQ = data quality """ context = {"set_species_url_available": True, - "set_internal_comment_available": True, + "dq": True, "species_url_form": SpeciesURLForm, "internal_comment_form": RescueOrgInternalComment} return rescue_organization_check(request, context)