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

38 lines
1.0 KiB
Twig
Raw Normal View History

2021-02-18 19:13:14 +00:00
{% extends 'base.html.twig' %}
{% block title %}{{'Beer'}}{% endblock %}
2021-02-18 19:13:14 +00:00
{% block body %}
<div class="container">
<h1 class="display-1">{{'Beer'}}</h1>
2021-02-18 19:13:14 +00:00
<table class="table">
<tbody>
<tr>
<th scope="row">{{'Id'}}</th>
2021-02-18 19:13:14 +00:00
<td>{{ beer.id }}</td>
</tr>
<tr>
<th scope="row">{{'Name'}}</th>
2021-02-18 19:13:14 +00:00
<td>{{ beer.name }}</td>
</tr>
<tr>
<th scope="row">{{'Alcool'}}</th>
<td>{{ beer.alcool|format_percent_number({rounding_mode: 'floor', fraction_digit: 1}) }}</td>
2021-02-18 19:13:14 +00:00
</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>
2021-02-18 19:13:14 +00:00
<a href="{{ path('beer_edit', {'id': beer.id}) }}" class="btn btn-warning" role="button">
<i class="fa fa-pencil fa-fw"></i> {{'edit'}}
</a>
2021-02-18 19:13:14 +00:00
{{ include('beer/_delete_form.html.twig') }}
</div>
2021-02-18 19:13:14 +00:00
{% endblock %}