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

38 lines
1.0 KiB
Twig

{% extends 'base.html.twig' %}
{% block title %}{{'Beer'}}{% endblock %}
{% block body %}
<div class="container">
<h1 class="display-1">{{'Beer'}}</h1>
<table class="table">
<tbody>
<tr>
<th scope="row">{{'Id'}}</th>
<td>{{ beer.id }}</td>
</tr>
<tr>
<th scope="row">{{'Name'}}</th>
<td>{{ beer.name }}</td>
</tr>
<tr>
<th scope="row">{{'Alcool'}}</th>
<td>{{ beer.alcool|format_percent_number({rounding_mode: 'floor', fraction_digit: 1}) }}</td>
</tr>
</tbody>
</table>
<a href="{{ path('beer_index') }}" class="btn btn-secondary" role="button">
<i class="fa fa-arrow-left fa-fw"></i> {{'back to list'}}
</a>
<a href="{{ path('beer_edit', {'id': beer.id}) }}" class="btn btn-warning" role="button">
<i class="fa fa-pencil fa-fw"></i> {{'edit'}}
</a>
{{ include('beer/_delete_form.html.twig') }}
</div>
{% endblock %}