From 13a0da6e46e66becae4d4999f8165ddaf6a28800 Mon Sep 17 00:00:00 2001
From: moanos
Date: Fri, 9 May 2025 17:13:31 +0200
Subject: [PATCH] feat: Move sex overview to partial
---
.../details/bulma-detail-adoption-notice.html | 43 +-----------------
.../partials/bulma-sex-overview.html | 44 +++++++++++++++++++
2 files changed, 45 insertions(+), 42 deletions(-)
create mode 100644 src/fellchensammlung/templates/fellchensammlung/partials/bulma-sex-overview.html
diff --git a/src/fellchensammlung/templates/fellchensammlung/details/bulma-detail-adoption-notice.html b/src/fellchensammlung/templates/fellchensammlung/details/bulma-detail-adoption-notice.html
index 3f1c265..4bb124b 100644
--- a/src/fellchensammlung/templates/fellchensammlung/details/bulma-detail-adoption-notice.html
+++ b/src/fellchensammlung/templates/fellchensammlung/details/bulma-detail-adoption-notice.html
@@ -25,48 +25,7 @@
{% endif %}
-
- {% if adoption_notice.num_per_sex.F > 0 %}
-
- {{ adoption_notice.num_per_sex.F }} x
-
-
-
-
- {% endif %}
-
- {% if adoption_notice.num_per_sex.I > 0 %}
-
- {{ adoption_notice.num_per_sex.I }}
-
-
-
-
-
- {% endif %}
- {% if adoption_notice.num_per_sex.M > 0 %}
-
- {{ adoption_notice.num_per_sex.M }}
-
-
-
-
- {% endif %}
- {% if adoption_notice.num_per_sex.M_N > 0 %}
-
- {{ adoption_notice.num_per_sex.M_N }}
-
-
-
-
- {% endif %}
-
+ {% include "fellchensammlung/partials/bulma-sex-overview.html" %}
diff --git a/src/fellchensammlung/templates/fellchensammlung/partials/bulma-sex-overview.html b/src/fellchensammlung/templates/fellchensammlung/partials/bulma-sex-overview.html
new file mode 100644
index 0000000..dbda83e
--- /dev/null
+++ b/src/fellchensammlung/templates/fellchensammlung/partials/bulma-sex-overview.html
@@ -0,0 +1,44 @@
+{% load static %}
+{% load i18n %}
+
+ {% if adoption_notice.num_per_sex.F > 0 %}
+
+ {{ adoption_notice.num_per_sex.F }} x
+
+
+
+
+ {% endif %}
+
+ {% if adoption_notice.num_per_sex.I > 0 %}
+
+ {{ adoption_notice.num_per_sex.I }}
+
+
+
+
+
+ {% endif %}
+ {% if adoption_notice.num_per_sex.M > 0 %}
+
+ {{ adoption_notice.num_per_sex.M }}
+
+
+
+
+ {% endif %}
+ {% if adoption_notice.num_per_sex.M_N > 0 %}
+
+ {{ adoption_notice.num_per_sex.M_N }}
+
+
+
+
+ {% endif %}
+
\ No newline at end of file