preformatovane kategoria na rovnaku vysku

This commit is contained in:
2025-03-23 21:33:37 +01:00
parent e241d429d0
commit 01cdc22a32

View File

@@ -46,32 +46,33 @@
spadnete do
jedné z kategorií.</em></p><br>
<div class="w3-row-padding w3-justify">
{% for category in event.categories.all %}
<div class="w3-col m6 w3-margin-bottom-16">
<h4 class="w3-text-purple">// {{ category.name }}</h4>
<p>
{{ category.description }}
</p>
{% if category.length %}
<p>Dlzka: {{ category.length }} m</p>
{% endif %}
{% if category.climb %}
<p>Stoupání: {{ category.climb }} m</p>
{% endif %}
{% if category.gpx %}
<p><a href="{{ category.gpx.url }}">GPX</a></p>
{% endif %}
{% if category.mapy_cz_url %}
<iframe style="border:none" src="{{ category.mapy_cz_url }}" width="100%" height="280" frameborder="0"></iframe>
{% endif %}
</div>
{% empty %}
Zatím nebyly vytvořeny žádné kategorie.
{% endfor %}
<div class="w3-row-padding" style="display: flex; flex-wrap: wrap;">
{% for category in event.categories.all %}
<div class="w3-col m6 w3-margin-bottom-16" style="display: flex;">
<div style="display: flex; flex-direction: column; width: 100%; border: 1px solid #ddd; padding: 16px;">
<h4 class="w3-text-purple">// {{ category.name }}</h4>
<p>{{ category.description }}</p>
{% if category.length %}
<p>Dlzka: {{ category.length }} m</p>
{% endif %}
{% if category.climb %}
<p>Stoupání: {{ category.climb }} m</p>
{% endif %}
{% if category.gpx %}
<p><a href="{{ category.gpx.url }}">GPX</a></p>
{% endif %}
<div style="margin-top: auto;">
{% if category.mapy_cz_url %}
<iframe style="border:none" src="{{ category.mapy_cz_url }}" width="100%" height="280" frameborder="0"></iframe>
{% endif %}
</div>
</div>
</div>
{% empty %}
<div class="w3-col s12">Zatím nebyly vytvořeny žádné kategorie.</div>
{% endfor %}
</div>
</div>
</section>