start_sf5_project/app/templates/beer/show.html.twig

31 lines
682 B
Twig

{% extends 'base.html.twig' %}
{% block title %}Beer{% endblock %}
{% block body %}
<h1>Beer</h1>
<table class="table">
<tbody>
<tr>
<th>Id</th>
<td>{{ beer.id }}</td>
</tr>
<tr>
<th>Name</th>
<td>{{ beer.name }}</td>
</tr>
<tr>
<th>Alcool</th>
<td>{{ beer.alcool }}</td>
</tr>
</tbody>
</table>
<a href="{{ path('beer_index') }}">back to list</a>
<a href="{{ path('beer_edit', {'id': beer.id}) }}">edit</a>
{{ include('beer/_delete_form.html.twig') }}
{% endblock %}