hegresphere/templates/company/index.html.twig

42 lines
1.1 KiB
Twig
Raw Permalink Normal View History

2024-11-21 17:04:56 +01:00
{% extends 'base.html.twig' %}
{% block title %}Company index{% endblock %}
{% block body %}
<h1>Company index</h1>
<table class="table">
<thead>
<tr>
<th>Id</th>
<th>Name</th>
<th>Address</th>
<th>Tel</th>
<th>Mail</th>
<th>actions</th>
</tr>
</thead>
<tbody>
{% for company in companies %}
<tr>
<td>{{ company.id }}</td>
<td>{{ company.name }}</td>
<td>{{ company.address }}</td>
<td>{{ company.tel }}</td>
<td>{{ company.mail }}</td>
<td>
<a href="{{ path('app_company_show', {'id': company.id}) }}">show</a>
<a href="{{ path('app_company_edit', {'id': company.id}) }}">edit</a>
</td>
</tr>
{% else %}
<tr>
<td colspan="6">no records found</td>
</tr>
{% endfor %}
</tbody>
</table>
<a href="{{ path('app_company_new') }}">Create new</a>
{% endblock %}