46 lines
1.8 KiB
Twig
46 lines
1.8 KiB
Twig
{% extends 'base.html.twig' %}
|
|
|
|
{% block title %}Atelier suivis{% endblock %}
|
|
|
|
{% block body %}
|
|
<div class="card mb-4">
|
|
<div class="card-header">
|
|
<h1 class="card-title">Liste des Ateliers suivis</h1>
|
|
</div>
|
|
|
|
{% if (ateliers | length) > 0 %}
|
|
<div class="card-body table-responsive">
|
|
<table class="table">
|
|
<thead>
|
|
<tr>
|
|
<th scope="col">NOM</th>
|
|
<th class="" scope="col">DESCRIPTION</th>
|
|
<th scope="col">ACTIONS</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for atelier in ateliers %}
|
|
<tr>
|
|
<td>{{ atelier.nom }}</td>
|
|
<td>{{ atelier.description | raw }}</td>
|
|
<td>
|
|
<div class="d-flex flex-row align-content-end">
|
|
<a class="btn btn-outline-primary m-1"
|
|
href="{{ path('app_atelier_show', {'id': atelier.id}) }}">Afficher</a>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
|
|
{% else %}
|
|
<div class="alert alert-info" role="alert">
|
|
Il n'y a pas encore d'ateliers. Vous pouvez commencer par <a class="alert-link"
|
|
href="{{ path('app_atelier_index') }}">en suivre un !</a>
|
|
</div>
|
|
{% endif %}
|
|
</div>
|
|
</div>
|
|
{% endblock %}
|