{% extends 'admin/base.html.twig' %}
{% block title %}Center index{% endblock %}
{% block body %}
<section class="mb-3 mb-lg-5">
<div class="card card-table mb-4">
<div class="card-header">
<div class="card-heading">
<span>Gestion des Centres </span>
<a href="{{ path('app_center_new') }}">
<span class="badge rounded-pill me-2 p-2 bg-primary" style="float:right"> Ajouter un centre</span>
</a>
</div>
</div>
<div class="card-body">
<table class="table">
<thead>
<tr>
<th>Id</th>
<th>Nom</th>
<th>Pays</th>
<th>Détails</th>
<th>Modifier</th>
</tr>
</thead>
<tbody>
{% for center in centers %}
<tr>
<td>{{ center.id }}</td>
<td>{{ center.name }}</td>
<td>{{ center.country }}</td>
<td>
<a href="{{ path('app_center_show', {'id': center.id}) }}" title="afficher les détails du centre">
<svg class="svg-icon svg-icon-md me-3">
<svg class="theme-line-0"><use xlink:href="{{asset('icons/orion-svg-sprite.svg#find-1')}}"></use></svg>
</svg>
</a>
</td>
<td>
<a href="{{ path('app_center_edit', {'id': center.id}) }}" title="modifier un centre">
<svg class="svg-icon svg-icon-md me-3">
<svg class="theme-line-0"><use xlink:href="{{asset('icons/orion-svg-sprite.svg#pencil-1')}}"></use></svg>
</svg>
</a>
</td>
</tr>
{% else %}
<tr>
<td colspan="4">Pas de centre trouvé</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
</section>
{% endblock %}