HegreEtConfort/templates/fault/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 %}Liste des pannes{% endblock %}
{% block body %}
<h1 class="mb-4">📋 Liste des pannes enregistrées</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 fault in faults %}
<tr>
<td>{{ fault.id }}</td>
<td>{{ fault.Wording }}</td>
<td>{{ fault.Description }}</td>
<td class="text-center">
<a href="{{ path('app_fault_show', {'id': fault.id}) }}" class="btn btn-sm btn-info">👁️ Voir</a>
<a href="{{ path('app_fault_edit', {'id': fault.id}) }}" class="btn btn-sm btn-warning">✏️ Modifier</a>
</td>
</tr>
{% else %}
<tr>
<td colspan="4" class="text-center text-muted">Aucune panne trouvée.</td>
</tr>
{% endfor %}
</tbody>
</table>
<a href="{{ path('app_fault_new') }}" class="btn btn-success mt-3"> Ajouter une nouvelle panne</a>
{% endblock %}