From 3dc011a22c31691c01a73b61c8b6223b94c53b0e Mon Sep 17 00:00:00 2001 From: moanos Date: Sun, 18 May 2025 14:07:31 +0200 Subject: [PATCH] refactor(bulma): Move animals to separate column --- .../details/bulma-detail-adoption-notice.html | 175 +++++++++--------- .../partials/bulma-partial-animal-card.html | 3 +- 2 files changed, 91 insertions(+), 87 deletions(-) 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 0ebc819..5345c25 100644 --- a/src/fellchensammlung/templates/fellchensammlung/details/bulma-detail-adoption-notice.html +++ b/src/fellchensammlung/templates/fellchensammlung/details/bulma-detail-adoption-notice.html @@ -6,106 +6,111 @@ {% block title %}{{ adoption_notice.name }}{% endblock %} {% block content %} -
-
-

{{ adoption_notice.name }}

-
-
-
-
- +
+
+
+
+

{{ adoption_notice.name }}

+
+
+
+ +
-
-

{% translate "Ort" %}

-

{% if adoption_notice.location %} - {{ adoption_notice.location }} - {% else %} - {{ adoption_notice.location_string }} - {% endif %}

-
-
- {% include "fellchensammlung/partials/bulma-sex-overview.html" %} +
+

{% translate "Ort" %}

+

{% if adoption_notice.location %} + {{ adoption_notice.location }} + {% else %} + {{ adoption_notice.location_string }} + {% endif %}

+
+
+ {% include "fellchensammlung/partials/bulma-sex-overview.html" %} +
+
-
-
-
- -
-
-
- - -
-
-
-

{% translate "Beschreibung" %}

+ + {% endif %}
-
- -
-
- {% for animal in adoption_notice.animals %} -
- {% include "fellchensammlung/partials/bulma-partial-animal-card.html" %} +
+ {% if adoption_notice.further_information %} +
+ + +
+ {% endif %}
- {% endfor %} +
+
+ {% for animal in adoption_notice.animals %} +
+ {% include "fellchensammlung/partials/bulma-partial-animal-card.html" %} +
+ {% endfor %} +
-
- {% if adoption_notice.further_information %} -
- - -
- {% endif %} -
+
{% include "fellchensammlung/partials/bulma-partial-comment-section.html" %} diff --git a/src/fellchensammlung/templates/fellchensammlung/partials/bulma-partial-animal-card.html b/src/fellchensammlung/templates/fellchensammlung/partials/bulma-partial-animal-card.html index ec9a36f..456c8f2 100644 --- a/src/fellchensammlung/templates/fellchensammlung/partials/bulma-partial-animal-card.html +++ b/src/fellchensammlung/templates/fellchensammlung/partials/bulma-partial-animal-card.html @@ -4,7 +4,6 @@

{{ animal.name }} -

@@ -57,5 +56,5 @@ href="{% url 'animal-add-photo-bulma' animal_id=animal.pk %}">{% translate 'Foto hinzufügen' %}
{% endif %} -
+