{% extends 'online.html.twig' %}
{% block title %}Pré-inscription | {{ parent() }}{% endblock %}
{% block body %}
<div class="breadcrumb">
<h1 class="mr-2">{{ app_name }}</h1>
<ul>
<li><a href="{{ path('pre_registration') }}">Pré-inscription</a></li>
<li>Choisissez un Etablissement</li>
</ul>
</div>
<div class="separator-breadcrumb border-top"></div>
<div class="row">
<div class="col-md-12">
<div class="card o-hidden mb-4">
<div class="card-header d-flex align-items-center border-0">
<h3 class="w-50 float-left card-title m-0">Nos Etablissements</h3>
</div>
<div>
<div class="table-responsive">
<table class="table text-center" id="user_table">
<thead>
<tr>
<th scope="col">#</th>
<th scope="col">Nom</th>
<th scope="col">Type</th>
<th scope="col">Action</th>
</tr>
</thead>
<tbody>
{% for establishment in establishments %}
<tr>
<th scope="row">{{ establishment.code }}</th>
<td>{{ establishment.name }}</td>
<td>{{ establishment.type }}</td>
<td width="5%">
<a class="btn btn-success" href="{{ path('pre_registration_verification', {'id': establishment.id})}}">Se pré-inscrire</a>
</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
{# <div class="row mb-4">
<div class="col-md-12 mb-4">
<div class="card text-left">
<div class="card-header">Pré-inscription</div>
<div class="card-body">
{{ include('pre_registration/_form.html.twig') }}
</div>
</div>
</div>
</div> #}
{% endblock %}