36 lines
950 B
Twig
36 lines
950 B
Twig
{% extends "base.twig" %}
|
|
|
|
{% block title %}Liste des rôles{% endblock %}
|
|
|
|
|
|
|
|
|
|
{% block content %}
|
|
|
|
<h1 class="">Liste des rôles</h1>
|
|
<table class="table table-striped table-bordered table-condensed">
|
|
<thead>
|
|
<th>ID</th>
|
|
<th>Nom</th>
|
|
</thead>
|
|
<tbody>
|
|
{# afficher les roles #}
|
|
{% for role in roles %}
|
|
<tr>
|
|
<td>{{ role.id }}</td>
|
|
<td>{{ role.name }}</td>
|
|
<td>
|
|
<button type="button" class="btn btn-info"
|
|
onclick="window.location.href='details.php?id={{ role.id }}'">Voir</button>
|
|
<button type="button" class="btn btn-warning"
|
|
onclick="window.location.href='edit.php?id={{ role.id }}'">Modifier</button>
|
|
<button type="button" class="btn btn-danger"
|
|
onclick="window.location.href='delete.php?id={{ role.id }}'">Supprimer</button>
|
|
</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
<button type="button" class="btn btn-success mb-2" onclick="window.location.href='add.php'">Ajouter</button>
|
|
|
|
{% endblock %} |