FestinHegre/templates/plats/show.html.twig

47 lines
1.1 KiB
Twig

{% extends 'base.html.twig' %}
{% block title %}Plats{% endblock %}
{% block body %}
<h1>Plats</h1>
<table class="table">
<tbody>
<tr>
<th>Id</th>
<td>{{ plat.id }}</td>
</tr>
<tr>
<th>Nom</th>
<td>{{ plat.Nom }}</td>
</tr>
<tr>
<th>Description</th>
<td>{{ plat.Description }}</td>
</tr>
<tr>
<th>Prix</th>
<td>{{ plat.Prix }}</td>
</tr>
<tr>
<th>Categorie</th>
<td>{{ plat.Categorie }}</td>
</tr>
<tr>
<th>Statut</th>
<td>{{ plat.Statut ? 'Yes' : 'No' }}</td>
</tr>
<tr>
<th>Nb_de_commande</th>
<td>{{ plat.NbDeCommande }}</td>
</tr>
</tbody>
</table>
<a href="{{ path('app_plats_index') }}">back to list</a>
<a href="{{ path('app_plats_edit', {'id': plat.id}) }}">edit</a>
{{ include('plats/_delete_form.html.twig') }}
{% endblock %}