50 lines
1.5 KiB
Twig
50 lines
1.5 KiB
Twig
|
{% extends 'base.html.twig' %}
|
||
|
|
||
|
{% block title %}Employee index{% endblock %}
|
||
|
|
||
|
{% block body %}
|
||
|
<h1>Employee index</h1>
|
||
|
|
||
|
<table class="table">
|
||
|
<thead>
|
||
|
<tr>
|
||
|
<th>Id</th>
|
||
|
<th>Nickname</th>
|
||
|
<th>Roles</th>
|
||
|
<th>Password</th>
|
||
|
<th>FirstName</th>
|
||
|
<th>LastName</th>
|
||
|
<th>Tel</th>
|
||
|
<th>Address</th>
|
||
|
<th>Mail</th>
|
||
|
<th>actions</th>
|
||
|
</tr>
|
||
|
</thead>
|
||
|
<tbody>
|
||
|
{% for employee in employees %}
|
||
|
<tr>
|
||
|
<td>{{ employee.id }}</td>
|
||
|
<td>{{ employee.nickname }}</td>
|
||
|
<td>{{ employee.roles ? employee.roles|json_encode : '' }}</td>
|
||
|
<td>{{ employee.password }}</td>
|
||
|
<td>{{ employee.firstName }}</td>
|
||
|
<td>{{ employee.lastName }}</td>
|
||
|
<td>{{ employee.tel }}</td>
|
||
|
<td>{{ employee.address }}</td>
|
||
|
<td>{{ employee.mail }}</td>
|
||
|
<td>
|
||
|
<a href="{{ path('app_employee_show', {'id': employee.id}) }}">show</a>
|
||
|
<a href="{{ path('app_employee_edit', {'id': employee.id}) }}">edit</a>
|
||
|
</td>
|
||
|
</tr>
|
||
|
{% else %}
|
||
|
<tr>
|
||
|
<td colspan="10">no records found</td>
|
||
|
</tr>
|
||
|
{% endfor %}
|
||
|
</tbody>
|
||
|
</table>
|
||
|
|
||
|
<a href="{{ path('app_employee_new') }}">Create new</a>
|
||
|
{% endblock %}
|