HegreEtConfort/templates/user/show.html.twig
sermandm b35c19fa5b Mise à jour majeure : liaisons entre entités, formulaires et affichages
- Relations entre entités (User, Intervention, etc.)\n- Formulaires adaptés\n- Refacto visuel des vues\n- Nouvelle base.html.twig\n- Dashboards par rôle
2025-04-25 14:55:06 +02:00

68 lines
1.8 KiB
Twig

{% extends 'base.html.twig' %}
{% block title %}Utilisateur{% endblock %}
{% block body %}
<h1>Détails de l'utilisateur</h1>
<table class="table">
<tbody>
<tr>
<th>Id</th>
<td>{{ user.id }}</td>
</tr>
<tr>
<th>Email</th>
<td>{{ user.email }}</td>
</tr>
<tr>
<th>Prénom</th>
<td>{{ user.FirstName }}</td>
</tr>
<tr>
<th>Nom</th>
<td>{{ user.LastName }}</td>
</tr>
<tr>
<th>Date de naissance</th>
<td>{{ user.BirthDate ? user.BirthDate|date('Y-m-d') : '' }}</td>
</tr>
<tr>
<th>Téléphone</th>
<td>{{ user.Phone }}</td>
</tr>
<tr>
<th>Rôles</th>
<td>
{% if user.roles %}
<ul>
{% for role in user.roles %}
<li>{{ role }}</li>
{% endfor %}
</ul>
{% endif %}
</td>
</tr>
<tr>
<th>Compétences</th>
<td>
{% if user.skills|length > 0 %}
<ul>
{% for skill in user.skills %}
<li>{{ skill.Wording }}</li>
{% endfor %}
</ul>
{% else %}
Aucune compétence
{% endif %}
</td>
</tr>
</tbody>
</table>
<a href="{{ path('app_user_index') }}" class="btn btn-primary">Retour à la liste</a>
<a href="{{ path('app_user_edit', {'id': user.id}) }}" class="btn btn-warning">Modifier</a>
{{ include('user/_delete_form.html.twig') }}
{% endblock %}