3
0
Fork 0
mirror of https://github.com/nanoy42/coope synced 2024-05-09 10:42:24 +00:00
coope/users/templates/users/schools_index.html
2019-01-17 23:16:43 +01:00

33 lines
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 %}