HegreEtConfort/templates/stock/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

35 lines
952 B
Twig

{% extends 'base.html.twig' %}
{% block title %}Détail de la pièce{% endblock %}
{% block body %}
<h1 class="mb-4">🔍 Détail d'une pièce détachée</h1>
<table class="table table-bordered">
<tbody>
<tr>
<th>ID</th>
<td>{{ stock.id }}</td>
</tr>
<tr>
<th>Nom</th>
<td>{{ stock.Wording }}</td>
</tr>
<tr>
<th>Description</th>
<td>{{ stock.Description }}</td>
</tr>
<tr>
<th>Quantité</th>
<td>{{ stock.Quantity }}</td>
</tr>
</tbody>
</table>
<div class="mt-3">
<a href="{{ path('app_stock_index') }}" class="btn btn-secondary">← Retour à la liste</a>
<a href="{{ path('app_stock_edit', {'id': stock.id}) }}" class="btn btn-warning">✏️ Modifier</a>
{{ include('stock/_delete_form.html.twig') }}
</div>
{% endblock %}