refactor: Restructure templates

This commit is contained in:
2024-03-25 11:04:01 +01:00
parent 8b06a2045d
commit 701997e2e9
20 changed files with 17 additions and 17 deletions

View File

@@ -0,0 +1,38 @@
{% extends "fellchensammlung/base_generic.html" %}
{% load custom_tags %}
{% load i18n %}
{% block content %}
<div class="detail-animal-adoption-header">
<h1>{{ adoption_notice.name }}</h1>
</div>
<div class="table-adoption-notice-info">
<table>
<tr>
<th>Ort</th>
<th>Suchen seit</th>
</tr>
<tr>
{% if adoption_notice.location %}
<td>{{ adoption_notice.location.name }}, {{ adoption_notice.location.postcode }}</td>
{% else %}
<td>Kein Ort angegeben</td>
{% endif %}
<td>{{ adoption_notice.searching_since }}</td>
</tr>
</table>
</div>
<p>
{% if adoption_notice.description %}
{{ adoption_notice.description }}
{% else %}
Keine Beschreibung angegeben
{% endif %}
</p>
<div class="animals">
{% for animal in adoption_notice.animals %}
{% include "fellchensammlung/partials/partial-animal-card.html" %}
{% endfor %}
</div>
{% endblock %}