2018-12-18 09:44:39 +01:00
|
|
|
{% extends '@CadolesCore/base.html.twig' %}
|
|
|
|
|
|
|
|
{% block pagewrapper %}
|
|
|
|
{% if access=="config" %}
|
|
|
|
<h1 class="page-header">Gestion des Utilisateurs</h1>
|
2019-03-12 14:50:57 +01:00
|
|
|
{% if masteridentity=="SQL" %}
|
2018-12-18 09:44:39 +01:00
|
|
|
<a class="btn btn-success" href={{ path('cadoles_core_config_user_submit') }}>Ajouter</a>
|
|
|
|
<br><br>
|
2019-03-12 14:50:57 +01:00
|
|
|
{% elseif masteridentity=="LDAP" %}
|
|
|
|
<a class="btn btn-success" href={{ path('cadoles_core_config_user_sync') }}>Synchroniser avec Annuaire</a>
|
|
|
|
<br><br>
|
|
|
|
{% endif %}
|
2018-12-18 09:44:39 +01:00
|
|
|
{% else %}
|
|
|
|
<br>
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
<div class="panel panel-primary">
|
|
|
|
<div class="panel-heading">
|
|
|
|
<i class="fa fa-table fa-fw"></i> Liste des Utilisateurs
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="panel-body">
|
|
|
|
<div class="dataTable_wrapper">
|
2019-03-12 14:50:57 +01:00
|
|
|
<table class="table table-striped table-bordered table-hover" id="dataTables" style="width:100%">
|
2018-12-18 09:44:39 +01:00
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
{% if access=="config" %}
|
2019-06-13 13:15:55 +02:00
|
|
|
<th width="90px" class="no-sort">Action</th>
|
2018-12-18 09:44:39 +01:00
|
|
|
{% endif %}
|
|
|
|
<th width="70px" class="no-sort">Avatar</th>
|
|
|
|
<th width="200px">Login</th>
|
|
|
|
<th>Nom</th>
|
|
|
|
<th>Prénom</th>
|
|
|
|
<th>Email</th>
|
|
|
|
<th>{{ labelniveau01 }}</th>
|
|
|
|
{% if viewniveau02 %}
|
|
|
|
<th class="no-sort">{{ labelniveau02 }}</th>
|
|
|
|
{% endif %}
|
|
|
|
<th class="no-sort">Groupes</th>
|
|
|
|
<th>Rôle</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block localjavascript %}
|
|
|
|
$(document).ready(function() {
|
|
|
|
{% if access=="profil" %}
|
|
|
|
$(".sidebar").remove();
|
|
|
|
$("body").removeClass("body");
|
|
|
|
$("body").addClass("simple");
|
|
|
|
$("#page-wrapper").css("margin","auto");
|
|
|
|
//$("#page-wrapper").css("max-width","1000px");
|
|
|
|
$("#page-wrapper").css("border-left","none");
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
$('#dataTables').DataTable({
|
|
|
|
columnDefs: [ { "targets": 'no-sort', "orderable": false } ],
|
|
|
|
responsive: true,
|
|
|
|
iDisplayLength: 100,
|
|
|
|
processing: true,
|
|
|
|
serverSide: true,
|
|
|
|
{% if access=="config" %}
|
|
|
|
order: [[ 2, "asc" ]],
|
|
|
|
ajax: "{{ path('cadoles_core_config_user_ajax_list') }}",
|
|
|
|
{% else %}
|
|
|
|
order: [[ 1, "asc" ]],
|
|
|
|
ajax: "{{ path('cadoles_core_profil_user_ajax_list') }}",
|
|
|
|
{% endif %}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
{% endblock %}
|