3
0
Fork 0
mirror of https://github.com/nanoy42/coope synced 2024-05-20 08:11:47 +00:00
coope/users/templates/users/schools_index.html

33 lines
1 KiB
HTML
Raw Normal View History

2018-10-05 22:03:02 +00:00
{% extends "base.html" %}
{% block entete %}Gestion des écoles{% endblock %}
2018-10-05 22:03:02 +00:00
{% 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>
2019-01-17 22:16:43 +00:00
<a class="button" href="{% url 'users:createSchool' %}"><i class="fa fa-school"></i> Créer une école</a><br><br>
2018-10-05 22:03:02 +00:00
<div class="table-wrapper">
<table>
<thead>
<tr>
<th>Ecole</th>
<th>Administration</th>
</tr>
</thead>
<tbody>
{% for school in schools %}
<tr>
<td>{{ school }}</td>
2019-01-17 22:16:43 +00:00
<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>
2018-10-05 22:03:02 +00:00
</tr>
{% endfor %}
</tbody>
</table>
</div>
</section>
{% endblock %}