{% import "Admin/Macros/action.html.twig" as action %}
{% import "Admin/Macros/statusIcon.html.twig" as statusIcon %}
{% import "Admin/Macros/cellBackground.html.twig" as cellBackground %}
<table style="border-spacing: 0px 15px">
<thead>
<tr>
<th class=""></th>
<th>Nom et Prénoms</th>
<th>Formation</th>
<th>Contacts</th>
<th>Actions</th>
</tr>
</thead>
{% for o in list %}
<tr>
<td class="noid relative left-15-in border-left border-5x border-solid" style="border-color: {{o.status ? o.status.color : '#fff'}}">
{{cellBackground.render(o.status)}}
{{statusIcon.render(o.status)}}
</td>
<td class="relative vt-15-in">
<div class="flex col left relative">
<span class="bold success">{{o.sex ? "Monsieur" : "Madame"}} {{o.lname}} {{o.fname}}</span>
<span>{{o.profession.label}}</span>
<span>{{o.company.label}}</span>
<span class='semibold upper success-alt'>Envoyé le {{date(o.date)|pretty_datetime}}</span>
<span class="upper medium white hz-10-in vt-3-in top-7 p-alt" style="background: {{o.status ? o.status.color : '#fff'}}">{{o.status ? o.status.label : "En attente"}}</span>
</div>
</td>
<td class="relative vt-15-in">
<div class="flex col left relative">
<span class="bold success">{{o.formation.label}}</span>
<span>{{o.session ? o.session.label : ""}}</span>
</div>
</td>
<td>
<span>{{o.email}}</span>
<br><span>{{o.phone}}</span>
</td>
<td>
{{action.render({link: url('registrations-view',{id:o.id}), color: "white", bg: "success", icon: "eye", type: 'record', title: "Détails de l'inscription"})}}
{{action.render({link: url('registrations-edit',{id:o.id}), color: "white", bg: "warning", icon: "edit", type: 'popup', title: "Modifier le statut de l'inscription"})}}
</td>
</tr>
{% endfor %}
</table>