remove useless file

This commit is contained in:
Charles 2025-11-18 10:54:58 +01:00
parent f2123e911d
commit 8c9a5da604
1 changed files with 0 additions and 99 deletions

View File

@ -1,99 +0,0 @@
{% block body %}
<div class="card p-3 mb-3">
{% if title is defined %}
<div class="card-header">
<div class="card-title d-flex align-items-center ">
{% if logo %}
<img src="{{ aws_url ~ logo }}" alt="Organization Logo" style="height: 50px; width: 50px;" class="rounded-circle">
{% endif %}
<h3 class="ms-3">{{ title|capitalize }}</h3>
{% if organizationId %}
{% endif %}
</div>
</div>
{% endif %}
<div class="card-body">
<table class="table align-middle ">
<thead>
<tr>
<th>Profile</th>
<th>Nom</th>
<th>Prénom</th>
<th>Email</th>
<th>Statut</th>
<th>Action</th>
</tr>
</thead>
<tbody>
{% if users|length == 0 %}
<tr>
<td colspan="6" class="text-center">Aucun utilisateur trouvé dans cette organisation.</td>
</tr>
{% else %}
{% for user in users %}
<tr>
<td>
{% if user.entity.pictureUrl %}
<img src="{{ aws_url ~ user.entity.pictureUrl }}" alt="User profile pic"
class="rounded-circle"
style="width:40px; height:40px;">
{% else %}
<div class="rounded-circle bg-secondary d-flex align-items-center justify-content-center"
style="width:40px; height:40px;">
<span class="text-white">{{ user.entity.name|first|upper }}{{ user.entity.surname|first|upper }}</span>
</div>
{% endif %}
</td>
<td>{{ user.entity.surname }}</td>
<td>{{ user.entity.name }}</td>
<td>{{ user.entity.email }}</td>
{# Logic for status #}
<td>
{# check if the user is active in the organization link #}
{% if user.isActive is defined %}
{% if user.isActive %}
{% if user.connected %}
<span class="badge bg-success">Actif</span>
{% else %}
<span class="badge bg-secondary">Inactif</span>
{% endif %}
{% else %}
<span class="badge bg-secondary">Désactivé</span>
{% endif %}
{# if no organization link #}
{% else %}
{% if user.connected %}
<span class="badge bg-success">Actif</span>
{% else %}
<span class="badge bg-secondary">Inactif</span>
{% endif %}
{% endif %}
</td>
<td>
{% if organizationId is defined and organizationId %}
<a href="{{ path('user_show', {'id': user.entity.id, 'organizationId': organizationId}) }}"
class="p-3 align-middle color-primary">
{{ ux_icon('fa6-regular:eye', {height: '30px', width: '30px'}) }}
</a>
{% else %}
<a href="{{ path('user_show', {'id': user.entity.id}) }}"
class="p-3 align-middle color-primary">
{{ ux_icon('fa6-regular:eye', {height: '30px', width: '30px'}) }}
</a>
{% endif %}
</td>
</tr>
{% endfor %}
{% endif %}
</tbody>
</table>
</div>
</div>
{% endblock %}