- 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
35 lines
958 B
Twig
35 lines
958 B
Twig
{% extends 'base.html.twig' %}
|
|
|
|
{% block title %}Détail du véhicule{% endblock %}
|
|
|
|
{% block body %}
|
|
<h1 class="mb-4">🔍 Détail du véhicule</h1>
|
|
|
|
<table class="table table-bordered">
|
|
<tbody>
|
|
<tr>
|
|
<th>ID</th>
|
|
<td>{{ vehicle.id }}</td>
|
|
</tr>
|
|
<tr>
|
|
<th>Immatriculation</th>
|
|
<td>{{ vehicle.LicensePlate }}</td>
|
|
</tr>
|
|
<tr>
|
|
<th>Marque</th>
|
|
<td>{{ vehicle.Brand }}</td>
|
|
</tr>
|
|
<tr>
|
|
<th>Modèle</th>
|
|
<td>{{ vehicle.Model }}</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
|
|
<div class="mt-3">
|
|
<a href="{{ path('app_vehicle_index') }}" class="btn btn-secondary">← Retour à la liste</a>
|
|
<a href="{{ path('app_vehicle_edit', {'id': vehicle.id}) }}" class="btn btn-warning">✏️ Modifier</a>
|
|
{{ include('vehicle/_delete_form.html.twig') }}
|
|
</div>
|
|
{% endblock %}
|