mirror of
https://github.com/nanoy42/coope
synced 2024-12-26 00:43:46 +00:00
33 lines
No EOL
1 KiB
HTML
33 lines
No EOL
1 KiB
HTML
{% extends "base.html" %}
|
|
{% block entete %}Gestion des écoles{% endblock %}
|
|
{% block navbar %}
|
|
<ul>
|
|
<li><a href="#first">Liste des écoles</a></li>
|
|
</ul>
|
|
{% endblock %}
|
|
{% block content %}
|
|
<section id="first" class="main">
|
|
<header class="major">
|
|
<h2>Liste des écoles</h2>
|
|
</header>
|
|
<a class="button" href="{% url 'users:createSchool' %}"><i class="fa fa-school"></i> Créer une école</a><br><br>
|
|
<div class="table-wrapper">
|
|
<table>
|
|
<thead>
|
|
<tr>
|
|
<th>Ecole</th>
|
|
<th>Administration</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for school in schools %}
|
|
<tr>
|
|
<td>{{ school }}</td>
|
|
<td>{% if perms.gestion.change_school %}<a class="button small" href="{% url 'users:editSchool' school.pk %}"><i class="fa fa-pencil-alt"></i> Modifier</a> {% endif %}{% if perms.gestion.delete_school %}<a class="button small" href="{% url 'users:deleteSchool' school.pk %}"><i class="fa fa-trash"></i> Supprimer</a>{% endif %}</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</section>
|
|
{% endblock %} |