Gestion des sections
This commit is contained in:
parent
3e984d059c
commit
f12e14a85d
5 changed files with 498 additions and 0 deletions
64
views/section.html
Normal file
64
views/section.html
Normal file
|
|
@ -0,0 +1,64 @@
|
|||
{% 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"><a href="/admin/sections">Sections</a></li>
|
||||
<li class="breadcrumb-item active">{{ Section.Name }}</li>
|
||||
</ol>
|
||||
</nav>
|
||||
<hr>
|
||||
</div>
|
||||
|
||||
<div class="mb-3">
|
||||
<b>Nom</b><br>
|
||||
{{ Section.Name }}
|
||||
</div>
|
||||
|
||||
<div class="mb-3">
|
||||
<b>Nom technique</b><br>
|
||||
{{ Section.ShortName }}
|
||||
</div>
|
||||
|
||||
<div class="mb-3">
|
||||
<b>Section parente</b><br>
|
||||
{% if Section.ParentSectionID %}
|
||||
{{ Section.ParentSection.Name }}
|
||||
{% else %}
|
||||
N/A
|
||||
{% endif %}
|
||||
</div>
|
||||
|
||||
<div class="mb-3">
|
||||
<b>Contient des membres</b><br>
|
||||
{% if Section.ContainsMembers %}Oui{% else %}Non{% endif %}
|
||||
</div>
|
||||
|
||||
<div class="mb-3">
|
||||
<b>Contient des contacts</b><br>
|
||||
{% if Section.ContainsContacts %}Oui{% else %}Non{% endif %}
|
||||
</div>
|
||||
|
||||
<div class="mt-3">
|
||||
<a class="btn btn-md btn-primary" href="/admin/sections/{{ Section.ID }}/edit">
|
||||
<i class="feather" data-feather="edit-2"></i>
|
||||
Modifier
|
||||
</a>
|
||||
<form
|
||||
action="/admin/sections/{{ Section.ID }}/delete"
|
||||
method="post"
|
||||
class="d-inline p-0"
|
||||
>
|
||||
<button class="btn btn-md btn-danger areyousure" type="submit">
|
||||
<i class="feather" data-feather="trash-2"></i>
|
||||
Supprimer
|
||||
</button>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
{% endblock %}
|
||||
Loading…
Add table
Add a link
Reference in a new issue