HegreEtConfort/templates/skill/index.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

38 lines
1.3 KiB
Twig
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{% extends 'base.html.twig' %}
{% block title %}Compétences disponibles{% endblock %}
{% block body %}
<h1 class="mb-4">📘 Liste des compétences</h1>
<table class="table table-striped table-bordered align-middle">
<thead class="table-dark">
<tr>
<th>ID</th>
<th>Nom</th>
<th>Description</th>
<th class="text-center">Actions</th>
</tr>
</thead>
<tbody>
{% for skill in skills %}
<tr>
<td>{{ skill.id }}</td>
<td>{{ skill.Wording }}</td>
<td>{{ skill.Description }}</td>
<td class="text-center">
<a href="{{ path('app_skill_show', {'id': skill.id}) }}" class="btn btn-info btn-sm">👁️ Voir</a>
<a href="{{ path('app_skill_edit', {'id': skill.id}) }}" class="btn btn-warning btn-sm">✏️ Modifier</a>
</td>
</tr>
{% else %}
<tr>
<td colspan="4" class="text-center text-muted">Aucune compétence enregistrée.</td>
</tr>
{% endfor %}
</tbody>
</table>
<a href="{{ path('app_skill_new') }}" class="btn btn-success mt-3"> Ajouter une compétence</a>
{% endblock %}