HegreEtConfort/templates/fault/index.html.twig

36 lines
924 B
Twig

{% extends 'base.html.twig' %}
{% block title %}Fault index{% endblock %}
{% block body %}
<h1>Fault index</h1>
<table class="table">
<thead>
<tr>
<th>Id</th>
<th>Wording</th>
<th>actions</th>
</tr>
</thead>
<tbody>
{% for fault in faults %}
<tr>
<td>{{ fault.id }}</td>
<td>{{ fault.Wording }}</td>
<td>
<a href="{{ path('app_fault_show', {'id': fault.id}) }}">show</a>
<a href="{{ path('app_fault_edit', {'id': fault.id}) }}">edit</a>
</td>
</tr>
{% else %}
<tr>
<td colspan="3">no records found</td>
</tr>
{% endfor %}
</tbody>
</table>
<a href="{{ path('app_fault_new') }}">Create new</a>
{% endblock %}