79 lines
1.5 KiB
HTML
79 lines
1.5 KiB
HTML
{% extends "layouts/main.html" %}
|
|
|
|
{% block main %}
|
|
<div class="container mt-4">
|
|
<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">Sections</li>
|
|
</ol>
|
|
</nav>
|
|
<hr>
|
|
</div>
|
|
|
|
{% if Sections %}
|
|
<div class="table-responsive">
|
|
<table class="table">
|
|
<thead>
|
|
<tr>
|
|
<th>Nom</th>
|
|
<th>Nom technique</th>
|
|
<th>Section parente</th>
|
|
<th>Contient membres</th>
|
|
<th>Contient contacts</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for Section in Sections %}
|
|
<tr>
|
|
<td>
|
|
<a href="/admin/sections/{{ Section.ID }}">
|
|
{{ Section.Name }}
|
|
</a>
|
|
</td>
|
|
<td>
|
|
{{ Section.ShortName }}
|
|
</td>
|
|
<td>
|
|
{% if Section.ParentSectionID %}
|
|
{{ Section.ParentSection.Name }}
|
|
{% else %}
|
|
N/A
|
|
{% endif %}
|
|
</td>
|
|
<td>
|
|
{% if Section.ContainsMembers %}
|
|
Oui
|
|
{% else %}
|
|
Non
|
|
{% endif %}
|
|
</td>
|
|
<td>
|
|
{% if Section.ContainsContacts %}
|
|
Oui
|
|
{% else %}
|
|
Non
|
|
{% endif %}
|
|
</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
{% else %}
|
|
<div class="my-4">
|
|
Pas de section pour le moment
|
|
</div>
|
|
{% endif %}
|
|
|
|
<div class="mt-3">
|
|
<a class="btn btn-md btn-primary" href="/admin/sections/add">
|
|
<i class="feather" data-feather="plus"></i>
|
|
Ajouter
|
|
</a>
|
|
</div>
|
|
|
|
</div>
|
|
{% endblock %}
|