2021-02-18 19:13:14 +00:00
|
|
|
{% extends 'base.html.twig' %}
|
|
|
|
|
2021-02-18 22:05:41 +00:00
|
|
|
{% block title %}{{'Beer index'}}{% endblock %}
|
2021-02-18 19:13:14 +00:00
|
|
|
|
|
|
|
{% block body %}
|
2021-02-18 22:05:41 +00:00
|
|
|
{# responsive, fixed-width container class #}
|
|
|
|
<div class="container">
|
|
|
|
|
|
|
|
<h1 class="display-1">{{'Beer index'}}</h1>
|
2021-02-18 19:13:14 +00:00
|
|
|
|
|
|
|
<table class="table">
|
2021-02-18 22:05:41 +00:00
|
|
|
<thead class="thead-light">
|
2021-02-18 19:13:14 +00:00
|
|
|
<tr>
|
2021-02-18 22:05:41 +00:00
|
|
|
<th scope="col">{{'Id'}}</th>
|
|
|
|
<th scope="col">{{'Name'}}</th>
|
|
|
|
<th scope="col">{{'Alcool'}}</th>
|
|
|
|
<th scope="col">{{'actions'}}</th>
|
2021-02-18 19:13:14 +00:00
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
{% for beer in beers %}
|
|
|
|
<tr>
|
2021-02-18 22:05:41 +00:00
|
|
|
<th scope="row">{{ beer.id }}</th>
|
2021-02-18 19:13:14 +00:00
|
|
|
<td>{{ beer.name }}</td>
|
|
|
|
<td>{{ beer.alcool }}</td>
|
|
|
|
<td>
|
2021-02-18 22:54:02 +00:00
|
|
|
<a href="{{ path('beer_show', {'id': beer.id}) }}" class="btn btn-secondary" role="button" title="{{'show'}}">
|
|
|
|
<i class="fa fa-eye fa-fw"></i>
|
2021-02-18 22:05:41 +00:00
|
|
|
</a>
|
2021-02-18 22:54:02 +00:00
|
|
|
<a href="{{ path('beer_edit', {'id': beer.id}) }}" class="btn btn-warning" role="button" title="{{'edit'}}">
|
|
|
|
<i class="fa fa-pencil fa-fw"></i>
|
2021-02-18 22:05:41 +00:00
|
|
|
</a>
|
2021-02-18 19:13:14 +00:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
{% else %}
|
|
|
|
<tr>
|
2021-02-18 22:05:41 +00:00
|
|
|
<td colspan="4">{{'no records found'}}</td>
|
2021-02-18 19:13:14 +00:00
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
|
2021-02-18 22:05:41 +00:00
|
|
|
<a href="{{ path('beer_new') }}" class="btn btn-primary" role="button">
|
|
|
|
<i class="fa fa-plus fa-fw"></i> {{'Create new'}}
|
|
|
|
</a>
|
|
|
|
</div>
|
2021-02-18 19:13:14 +00:00
|
|
|
{% endblock %}
|