Format templates

This commit is contained in:
William Bouzourène 2025-07-24 11:41:34 +02:00
parent 3b0447b316
commit 36520d7435
Signed by: bouzoure
SSH key fingerprint: SHA256:19MbXpLua4rUtk8tunMesD8KUKb91LXLHg8E/qTooww
13 changed files with 388 additions and 382 deletions

View file

@ -13,70 +13,74 @@
<hr />
</div>
<div class="row my-3">
<div class="col-sm-6">
<span class="h2 d-none d-sm-inline">Sections</span>
</div>
<div class="col-sm-6 text-end">
<a class="btn btn-outline-primary" href="/admin/sections/add">
<i class="bi-plus-lg"></i>
Ajouter
</a>
</div>
</div>
<div class="row my-3">
<div class="col-sm-6">
<span class="h2 d-none d-sm-inline">Sections</span>
</div>
<div class="col-sm-6 text-end">
<a class="btn btn-outline-primary" href="/admin/sections/add">
<i class="bi-plus-lg"></i>
Ajouter
</a>
</div>
</div>
{% if Sections %}
{% for Section in Sections %}
<div class="card card-body my-2 py-2 bg-body-tertiary">
{% for Section in Sections %}
<div class="card card-body my-2 py-2 bg-body-tertiary">
<div class="row">
<div class="col-12 col-sm-8 col-md-9 col-xl-3 order-1">
<div class="text-bold fs-7 mt-xxl-0 mt-2">Nom</div>
<div class="col-12 col-sm-8 col-md-9 col-xl-3 order-1">
<div class="text-bold fs-7 mt-xxl-0 mt-2">Nom</div>
<div>
<a href="/admin/sections/{{ Section.ID }}">
{{ Section.Name }}
</a>
</div>
</div>
<a href="/admin/sections/{{ Section.ID }}">
{{ Section.Name }}
</a>
</div>
</div>
<div class="col-12 col-sm-8 col-md-9 col-xl-3 order-2 order-sm-3 order-xl-2">
<div class="text-bold fs-7 mt-xxl-0 mt-2">Section parente</div>
<div
class="col-12 col-sm-8 col-md-9 col-xl-3 order-2 order-sm-3 order-xl-2"
>
<div class="text-bold fs-7 mt-xxl-0 mt-2">Section parente</div>
<div>
{% if Section.ParentSectionID %}
<a href="/admin/sections/{{ Section.ParentSectionID }}">
{{ Section.ParentSection.Name }}
</a>
{% else %}
<span class="badge text-bg-danger">Pas de section parente</span>
{% endif %}
</div>
</div>
{% if Section.ParentSectionID %}
<a href="/admin/sections/{{ Section.ParentSectionID }}">
{{ Section.ParentSection.Name }}
</a>
{% else %}
<span class="badge text-bg-danger"
>Pas de section parente</span
>
{% endif %}
</div>
</div>
<div class="col-12 col-sm-4 col-md-3 col-xl-3 order-3 order-sm-2 order-xl-3">
<div class="text-bold fs-7 mt-xxl-0 mt-2">Membres</div>
<div
class="col-12 col-sm-4 col-md-3 col-xl-3 order-3 order-sm-2 order-xl-3"
>
<div class="text-bold fs-7 mt-xxl-0 mt-2">Membres</div>
<div>
{% if Section.ContainsMembers %}
<span class="badge text-bg-success">Oui</span>
{% else %}
<span class="badge text-bg-danger">Non</span>
{% endif %}
</div>
</div>
{% if Section.ContainsMembers %}
<span class="badge text-bg-success">Oui</span>
{% else %}
<span class="badge text-bg-danger">Non</span>
{% endif %}
</div>
</div>
<div class="col-12 col-sm-4 col-md-3 col-xl-3 order-4">
<div class="text-bold fs-7 mt-xxl-0 mt-2">Sympathisants</div>
<div class="col-12 col-sm-4 col-md-3 col-xl-3 order-4">
<div class="text-bold fs-7 mt-xxl-0 mt-2">Sympathisants</div>
<div>
{% if Section.ContainsContacts %}
<span class="badge text-bg-success">Oui</span>
{% else %}
<span class="badge text-bg-danger">Non</span>
{% endif %}
</div>
</div>
</div>
</div>
{% endfor %}
{% if Section.ContainsContacts %}
<span class="badge text-bg-success">Oui</span>
{% else %}
<span class="badge text-bg-danger">Non</span>
{% endif %}
</div>
</div>
</div>
</div>
{% endfor %}
{% else %}
<div class="my-4">Pas de section pour le moment</div>
{% endif %}