Admin: Gestion des listes
This commit is contained in:
parent
6acd737b99
commit
28662ed965
13 changed files with 605 additions and 29 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue