refactor
This commit is contained in:
parent
e6391279fe
commit
e17e8e0eb2
|
|
@ -11,42 +11,7 @@
|
||||||
|
|
||||||
{% for org in usersByOrganization %}
|
{% for org in usersByOrganization %}
|
||||||
<h2 class="mt-5 mb-3">{{ org.organization_name|title }}</h2>
|
<h2 class="mt-5 mb-3">{{ org.organization_name|title }}</h2>
|
||||||
<table class="table align-middle shadow">
|
{% include 'user/userList.html.twig' %}
|
||||||
<thead class="table-light shadow-sm">
|
|
||||||
<tr>
|
|
||||||
<th>Picture</th>
|
|
||||||
<th>Surname</th>
|
|
||||||
<th>Name</th>
|
|
||||||
<th>Email</th>
|
|
||||||
<th>Visualiser</th>
|
|
||||||
</tr>
|
|
||||||
</thead>
|
|
||||||
<tbody>
|
|
||||||
{% for user in org.users %}
|
|
||||||
<tr>
|
|
||||||
<td>
|
|
||||||
{% if user.pictureUrl %}
|
|
||||||
<img src="{{ asset(user.pictureUrl) }}" alt="User profile pic" class="rounded-circle" style="width:40px; height:40px;">
|
|
||||||
{% endif %}
|
|
||||||
</td>
|
|
||||||
<td>{{ user.surname }}</td>
|
|
||||||
<td>{{ user.name }}</td>
|
|
||||||
<td>{{ user.email }}</td>
|
|
||||||
<td>
|
|
||||||
<a href="{{ path('user_show', {'id': user.id}) }}" class="p-3 align-middle">
|
|
||||||
<i class="icon-grid menu-icon color-primary">
|
|
||||||
{{ ux_icon('fa6-regular:eye', {height: '30px', width: '30px'}) }}
|
|
||||||
</a>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
{% endfor %}
|
|
||||||
{% if org.users|length == 0 %}
|
|
||||||
<tr>
|
|
||||||
<td colspan="5" class="text-center">Aucun utilisateur trouvé.</td>
|
|
||||||
</tr>
|
|
||||||
{% endif %}
|
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</div>
|
</div>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
@ -0,0 +1,39 @@
|
||||||
|
{% block body %}
|
||||||
|
|
||||||
|
<table class="table align-middle shadow">
|
||||||
|
<thead class="table-light shadow-sm">
|
||||||
|
<tr>
|
||||||
|
<th>Picture</th>
|
||||||
|
<th>Surname</th>
|
||||||
|
<th>Name</th>
|
||||||
|
<th>Email</th>
|
||||||
|
<th>Visualiser</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
{% for user in org.users %}
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
{% if user.pictureUrl %}
|
||||||
|
<img src="{{ asset(user.pictureUrl) }}" alt="User profile pic" class="rounded-circle" style="width:40px; height:40px;">
|
||||||
|
{% endif %}
|
||||||
|
</td>
|
||||||
|
<td>{{ user.surname }}</td>
|
||||||
|
<td>{{ user.name }}</td>
|
||||||
|
<td>{{ user.email }}</td>
|
||||||
|
<td>
|
||||||
|
<a href="{{ path('user_show', {'id': user.id}) }}" class="p-3 align-middle">
|
||||||
|
<i class="icon-grid menu-icon color-primary">
|
||||||
|
{{ ux_icon('fa6-regular:eye', {height: '30px', width: '30px'}) }}
|
||||||
|
</a>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
{% endfor %}
|
||||||
|
{% if org.users|length == 0 %}
|
||||||
|
<tr>
|
||||||
|
<td colspan="5" class="text-center">Aucun utilisateur trouvé.</td>
|
||||||
|
</tr>
|
||||||
|
{% endif %}
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
{% endblock %}
|
||||||
Loading…
Reference in New Issue