mirror of
https://github.com/nanoy42/coope
synced 2024-12-25 16:33:47 +00:00
33 lines
No EOL
946 B
HTML
33 lines
No EOL
946 B
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' %}">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 %}">Modifier</a> {% endif %}{% if perms.gestion.delete_school %}<a class="button small" href="{% url 'users:deleteSchool' school.pk %}">Supprimer</a>{% endif %}</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</section>
|
|
{% endblock %} |