2024-10-25 00:03:32 +02:00
|
|
|
{% extends 'base.html.twig' %}
|
|
|
|
|
2024-11-21 17:55:00 +01:00
|
|
|
{% block title %}Employee index{% endblock %}
|
2024-10-25 00:03:32 +02:00
|
|
|
|
|
|
|
{% block body %}
|
2024-11-21 17:55:00 +01:00
|
|
|
<h1>Employee index</h1>
|
2024-10-25 00:03:32 +02:00
|
|
|
|
2024-11-21 17:55:00 +01:00
|
|
|
<table class="table">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>Id</th>
|
|
|
|
<th>Email</th>
|
|
|
|
<th>FirstName</th>
|
|
|
|
<th>LastName</th>
|
|
|
|
<th>Password</th>
|
|
|
|
<th>Roles</th>
|
|
|
|
<th>actions</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
{% for employee in employees %}
|
|
|
|
<tr>
|
|
|
|
<td>{{ employee.id }}</td>
|
|
|
|
<td>{{ employee.email }}</td>
|
|
|
|
<td>{{ employee.firstName }}</td>
|
|
|
|
<td>{{ employee.lastName }}</td>
|
|
|
|
<td>{{ employee.password }}</td>
|
|
|
|
<td>{{ employee.roles ? employee.roles|json_encode : '' }}</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="7">no records found</td>
|
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
2024-10-25 00:03:32 +02:00
|
|
|
|
2024-11-21 17:55:00 +01:00
|
|
|
<a href="{{ path('app_employee_new') }}">Create new</a>
|
2024-10-25 00:03:32 +02:00
|
|
|
{% endblock %}
|