Admin: Gestion des listes

This commit is contained in:
William Bouzourène 2024-12-31 16:19:19 +01:00
parent c54cad7738
commit 151a199bc5
Signed by: bouzoure
SSH key fingerprint: SHA256:19MbXpLua4rUtk8tunMesD8KUKb91LXLHg8E/qTooww
13 changed files with 605 additions and 29 deletions

View file

@ -2,23 +2,41 @@
{% block main %}
<div class="container mt-4">
<h1>Listes</h1>
<hr>
<div class="mb-4">
<nav>
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="/">Accueil</a></li>
<li class="breadcrumb-item"><a href="/admin">Administration</a></li>
<li class="breadcrumb-item active">Listes</li>
</ol>
</nav>
<hr>
</div>
{% if Lists %}
<div class="table-responsive">
<table class="table table-borderless table-hover">
<table class="table">
<thead>
<tr>
<th>Nom</th>
<th>Choix multiples</th>
</tr>
</thead>
<tbody>
{% for List in Lists %}
<tr>
<td
class="item-click"
onclick="window.location.href='/admin/lists/{{ List.ID }}'"
>
<td>
<a href="/admin/lists/{{ List.ID }}">
{{ List.Name }}
</a>
</td>
<td>
{% if List.Multi %}
Oui
{% else %}
Non
{% endif %}
</td>
</tr>
{% endfor %}
</tbody>