Improve lists
This commit is contained in:
parent
b3c309743b
commit
1946083679
6 changed files with 120 additions and 93 deletions
|
|
@ -1,7 +1,7 @@
|
||||||
{% extends "layouts/main.html" %}
|
{% extends "layouts/main.html" %}
|
||||||
|
|
||||||
{% block main %}
|
{% block main %}
|
||||||
<div class="container mt-4">
|
<div class="container my-4">
|
||||||
<div class="mb-4">
|
<div class="mb-4">
|
||||||
<nav>
|
<nav>
|
||||||
<ol class="breadcrumb">
|
<ol class="breadcrumb">
|
||||||
|
|
@ -13,31 +13,31 @@
|
||||||
<hr>
|
<hr>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{% if Fields %}
|
<div class="my-3 text-end">
|
||||||
|
<a class="btn btn-md btn-primary" href="/admin/fields/add">
|
||||||
|
<i class="bi-plus-lg"></i>
|
||||||
|
Ajouter
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="h4 my-2">Membres</div>
|
||||||
<div class="table-responsive">
|
<div class="table-responsive">
|
||||||
<table class="table">
|
<table class="table">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th>Nom</th>
|
<th class="w-75">Nom</th>
|
||||||
<th>Population</th>
|
<th class="w-25">Type de champ</th>
|
||||||
<th>Type de champ</th>
|
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
{% for Field in Fields %}
|
{% for Field in Fields %}
|
||||||
|
{% if Field.PersonType == "member" %}
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
<a href="/admin/fields/{{ Field.ID }}">
|
<a href="/admin/fields/{{ Field.ID }}">
|
||||||
{{ Field.Name }}
|
{{ Field.Name }}
|
||||||
</a>
|
</a>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
|
||||||
{% for Key, Value in PersonTypes %}
|
|
||||||
{% if Key == Field.PersonType %}
|
|
||||||
{{ Value }}
|
|
||||||
{% endif %}
|
|
||||||
{% endfor %}
|
|
||||||
</td>
|
|
||||||
<td>
|
<td>
|
||||||
{% for Key, Value in FieldTypes %}
|
{% for Key, Value in FieldTypes %}
|
||||||
{% if Key == Field.FieldType %}
|
{% if Key == Field.FieldType %}
|
||||||
|
|
@ -46,21 +46,42 @@
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
{% else %}
|
|
||||||
<div class="my-4">
|
|
||||||
Pas de champs pour le moment
|
|
||||||
</div>
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
<div class="mt-3">
|
<div class="h4 my-2">Contacts</div>
|
||||||
<a class="btn btn-md btn-primary" href="/admin/fields/add">
|
<div class="table-responsive">
|
||||||
<i class="bi-plus-lg"></i>
|
<table class="table">
|
||||||
Ajouter
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th class="w-75">Nom</th>
|
||||||
|
<th class="w-25">Type de champ</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
{% for Field in Fields %}
|
||||||
|
{% if Field.PersonType == "contact" %}
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<a href="/admin/fields/{{ Field.ID }}">
|
||||||
|
{{ Field.Name }}
|
||||||
</a>
|
</a>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
{% for Key, Value in FieldTypes %}
|
||||||
|
{% if Key == Field.FieldType %}
|
||||||
|
{{ Value }}
|
||||||
|
{% endif %}
|
||||||
|
{% endfor %}
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
{% endif %}
|
||||||
|
{% endfor %}
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
{% extends "layouts/main.html" %}
|
{% extends "layouts/main.html" %}
|
||||||
|
|
||||||
{% block main %}
|
{% block main %}
|
||||||
<div class="container mt-4">
|
<div class="container my-4">
|
||||||
<div class="mb-4">
|
<div class="mb-4">
|
||||||
<nav>
|
<nav>
|
||||||
<ol class="breadcrumb">
|
<ol class="breadcrumb">
|
||||||
|
|
@ -13,13 +13,20 @@
|
||||||
<hr>
|
<hr>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="my-3 text-end">
|
||||||
|
<a class="btn btn-md btn-primary" href="/admin/lists/add">
|
||||||
|
<i class="bi-plus-lg"></i>
|
||||||
|
Ajouter
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
|
||||||
{% if Lists %}
|
{% if Lists %}
|
||||||
<div class="table-responsive">
|
<div class="table-responsive">
|
||||||
<table class="table">
|
<table class="table">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th>Nom</th>
|
<th class="w-75">Nom</th>
|
||||||
<th>Choix multiples</th>
|
<th class="w-25">Choix multiples</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
|
|
@ -32,8 +39,10 @@
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
{% if List.Multi %}
|
{% if List.Multi %}
|
||||||
|
<i class="bi-check-lg text-success me-1"></i>
|
||||||
Oui
|
Oui
|
||||||
{% else %}
|
{% else %}
|
||||||
|
<i class="bi-x-lg text-danger me-1"></i>
|
||||||
Non
|
Non
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</td>
|
</td>
|
||||||
|
|
@ -48,12 +57,5 @@
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
<div class="mt-3">
|
|
||||||
<a class="btn btn-md btn-primary" href="/admin/lists/add">
|
|
||||||
<i class="bi-plus-lg"></i>
|
|
||||||
Ajouter
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
{% extends "layouts/main.html" %}
|
{% extends "layouts/main.html" %}
|
||||||
|
|
||||||
{% block main %}
|
{% block main %}
|
||||||
<div class="container mt-4">
|
<div class="container my-4">
|
||||||
<div class="mb-4">
|
<div class="mb-4">
|
||||||
<nav>
|
<nav>
|
||||||
<ol class="breadcrumb">
|
<ol class="breadcrumb">
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
{% extends "layouts/main.html" %}
|
{% extends "layouts/main.html" %}
|
||||||
|
|
||||||
{% block main %}
|
{% block main %}
|
||||||
<div class="container mt-4">
|
<div class="container my-4">
|
||||||
<div class="mb-4">
|
<div class="mb-4">
|
||||||
<nav>
|
<nav>
|
||||||
<ol class="breadcrumb">
|
<ol class="breadcrumb">
|
||||||
|
|
@ -13,6 +13,14 @@
|
||||||
<hr>
|
<hr>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="my-3 text-end">
|
||||||
|
<a class="btn btn-md btn-primary" href="/admin/roles/add">
|
||||||
|
<i class="bi-plus-lg"></i>
|
||||||
|
Ajouter
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
{% if Roles %}
|
{% if Roles %}
|
||||||
<div class="table-responsive">
|
<div class="table-responsive">
|
||||||
<table class="table">
|
<table class="table">
|
||||||
|
|
@ -40,12 +48,5 @@
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
<div class="mt-3">
|
|
||||||
<a class="btn btn-md btn-primary" href="/admin/roles/add">
|
|
||||||
<i class="bi-plus-lg"></i>
|
|
||||||
Ajouter
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
{% extends "layouts/main.html" %}
|
{% extends "layouts/main.html" %}
|
||||||
|
|
||||||
{% block main %}
|
{% block main %}
|
||||||
<div class="container mt-4">
|
<div class="container my-4">
|
||||||
<div class="mb-4">
|
<div class="mb-4">
|
||||||
<nav>
|
<nav>
|
||||||
<ol class="breadcrumb">
|
<ol class="breadcrumb">
|
||||||
|
|
@ -13,16 +13,22 @@
|
||||||
<hr>
|
<hr>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="my-3 text-end">
|
||||||
|
<a class="btn btn-md btn-primary" href="/admin/sections/add">
|
||||||
|
<i class="bi-plus-lg"></i>
|
||||||
|
Ajouter
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
|
||||||
{% if Sections %}
|
{% if Sections %}
|
||||||
<div class="table-responsive">
|
<div class="table-responsive">
|
||||||
<table class="table">
|
<table class="table">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th>Nom</th>
|
<th class="w-25">Nom</th>
|
||||||
<th>Nom technique</th>
|
<th class="w-25">Section parente</th>
|
||||||
<th>Section parente</th>
|
<th class="w-25">Membres</th>
|
||||||
<th>Contient membres</th>
|
<th class="w-25">Contacts</th>
|
||||||
<th>Contient contacts</th>
|
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
|
|
@ -33,27 +39,29 @@
|
||||||
{{ Section.Name }}
|
{{ Section.Name }}
|
||||||
</a>
|
</a>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
|
||||||
{{ Section.ShortName }}
|
|
||||||
</td>
|
|
||||||
<td>
|
<td>
|
||||||
{% if Section.ParentSectionID %}
|
{% if Section.ParentSectionID %}
|
||||||
{{ Section.ParentSection.Name }}
|
{{ Section.ParentSection.Name }}
|
||||||
{% else %}
|
{% else %}
|
||||||
N/A
|
<i class="bi-x-lg text-danger me-1"></i>
|
||||||
|
Non
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
{% if Section.ContainsMembers %}
|
{% if Section.ContainsMembers %}
|
||||||
|
<i class="bi-check-lg text-success me-1"></i>
|
||||||
Oui
|
Oui
|
||||||
{% else %}
|
{% else %}
|
||||||
|
<i class="bi-x-lg text-danger me-1"></i>
|
||||||
Non
|
Non
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
{% if Section.ContainsContacts %}
|
{% if Section.ContainsContacts %}
|
||||||
|
<i class="bi-check-lg text-success me-1"></i>
|
||||||
Oui
|
Oui
|
||||||
{% else %}
|
{% else %}
|
||||||
|
<i class="bi-x-lg text-danger me-1"></i>
|
||||||
Non
|
Non
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</td>
|
</td>
|
||||||
|
|
@ -68,12 +76,5 @@
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
<div class="mt-3">
|
|
||||||
<a class="btn btn-md btn-primary" href="/admin/sections/add">
|
|
||||||
<i class="bi-plus-lg"></i>
|
|
||||||
Ajouter
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
{% extends "layouts/main.html" %}
|
{% extends "layouts/main.html" %}
|
||||||
|
|
||||||
{% block main %}
|
{% block main %}
|
||||||
<div class="container mt-4">
|
<div class="container my-4">
|
||||||
<div class="mb-4">
|
<div class="mb-4">
|
||||||
<nav>
|
<nav>
|
||||||
<ol class="breadcrumb">
|
<ol class="breadcrumb">
|
||||||
|
|
@ -13,14 +13,21 @@
|
||||||
<hr>
|
<hr>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="my-3 text-end">
|
||||||
|
<a class="btn btn-md btn-primary" href="/admin/users/add">
|
||||||
|
<i class="bi-plus-lg"></i>
|
||||||
|
Ajouter
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
|
||||||
{% if Users %}
|
{% if Users %}
|
||||||
<div class="table-responsive">
|
<div class="table-responsive">
|
||||||
<table class="table">
|
<table class="table">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th>Nom complet</th>
|
<th class="w-50">Nom complet</th>
|
||||||
<th>Email</th>
|
<th class="w-25">Email</th>
|
||||||
<th>Administrateur</th>
|
<th class="w-25">Administrateur</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
|
|
@ -37,8 +44,10 @@
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
{% if User.IsAdmin %}
|
{% if User.IsAdmin %}
|
||||||
|
<i class="bi-check-lg text-success me-1"></i>
|
||||||
Oui
|
Oui
|
||||||
{% else %}
|
{% else %}
|
||||||
|
<i class="bi-x-lg text-danger me-1"></i>
|
||||||
Non
|
Non
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</td>
|
</td>
|
||||||
|
|
@ -53,12 +62,5 @@
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
<div class="mt-3">
|
|
||||||
<a class="btn btn-md btn-primary" href="/admin/users/add">
|
|
||||||
<i class="bi-plus-lg"></i>
|
|
||||||
Ajouter
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue