71 lines
2.7 KiB
Twig
71 lines
2.7 KiB
Twig
{% extends 'base.html.twig' %}
|
|
|
|
{% block body %}
|
|
<div class="col-md-12 m-auto p-5">
|
|
<div class="col d-flex justify-content-between align-items-center ">
|
|
<h1 class="mb-4">
|
|
{% if organization.logoUrl %}
|
|
<img src="{{ asset('uploads/logos/' ~ organization.logoUrl) }}" alt="Organization logo"
|
|
class="rounded-circle" style="width:40px; height:40px;">
|
|
{% endif %}
|
|
{{ organization.name|title }} - Dashboard</h1>
|
|
{% if is_granted("ROLE_SUPER_ADMIN") %}
|
|
<a href="{{ path('organization_edit', {'id': organization.id}) }}" class="btn btn-primary">Gérer mon
|
|
organisation</a>
|
|
{% endif %}
|
|
</div>
|
|
{# USER ROW #}
|
|
<div class="row">
|
|
<div class="col-9">
|
|
<div class="row mb-4">
|
|
<div class="col mb-3 mb-sm-0">
|
|
{% include 'user/userListSmall.html.twig' with {
|
|
title: 'Nouveaux utilisateurs',
|
|
users: newUsers,
|
|
empty_message: 'Aucun nouveaux utilisateurs trouvé.',
|
|
organizationId: organization.id
|
|
} %}
|
|
</div>
|
|
<div class="col mb-3 mb-sm-0">
|
|
{% include 'user/userListSmall.html.twig' with {
|
|
title: 'Administrateurs',
|
|
users: adminUsers,
|
|
empty_message: 'Aucun administrateur trouvé.'
|
|
} %}
|
|
</div>
|
|
</div>
|
|
<div class="m-auto">
|
|
{% include 'user/userList.html.twig' with {
|
|
title: 'Mes utilisateurs',
|
|
organizationId: organization.id,
|
|
empty_message: 'Aucun utilisateurs trouvé.'
|
|
} %}
|
|
</div>
|
|
{# APPLICATION ROW #}
|
|
<div class="row ">
|
|
{% for application in applications %}
|
|
<div class="col-6 mb-3">
|
|
{% include 'applications/appSmall.html.twig' with {
|
|
application: application
|
|
} %}
|
|
</div>
|
|
{% endfor %}
|
|
</div>
|
|
</div>
|
|
|
|
<div class="col-3 m-auto">
|
|
{% include 'organization/activity.html.twig' with {
|
|
title: 'Activités récentes',
|
|
empty_message: 'Aucune activité récente.'
|
|
} %}
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
{% endblock %}
|
|
|
|
|