2018-12-18 09:44:39 +01:00
|
|
|
{% extends '@CadolesCore/base.html.twig' %}
|
|
|
|
|
2019-12-16 16:07:10 +01:00
|
|
|
{% block localstyle %}
|
|
|
|
th { font-size: 10px; }
|
|
|
|
td { font-size: 10px; }
|
|
|
|
{% endblock %}
|
2018-12-18 09:44:39 +01:00
|
|
|
{% 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>
|
2020-02-25 13:04:42 +01:00
|
|
|
<a class="btn btn-success" href={{ path('cadoles_core_config_user_export') }}>Exporter CSV</a>
|
2018-12-18 09:44:39 +01:00
|
|
|
<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">
|
2020-04-20 12:10:26 +02:00
|
|
|
<table class="table table-striped table-bordered table-hover" id="dataTables" style="width:100%; font-size:11px;">
|
2018-12-18 09:44:39 +01:00
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
{% if access=="config" %}
|
2020-04-20 12:10:26 +02:00
|
|
|
<th class="no-sort">Action</th>
|
2018-12-18 09:44:39 +01:00
|
|
|
{% endif %}
|
2020-04-20 12:10:26 +02:00
|
|
|
<th class="no-sort {% if fields["avatar"] is defined and fields["avatar"].perm==0 %}no-visible{% endif %}">Avatar</th>
|
2020-07-10 12:21:42 +02:00
|
|
|
<th class="{% if fields["login"] is defined and fields["login"].perm==0 and access!="config"%}no-visible{% endif %}">Login</th>
|
2019-07-04 16:11:50 +02:00
|
|
|
<th class="{% if fields["lastname"] is defined and fields["lastname"].perm==0 %}no-visible{% endif %}">Nom</th>
|
|
|
|
<th class="{% if fields["firstname"] is defined and fields["firstname"].perm==0 %}no-visible{% endif %}">Prénom</th>
|
2020-04-20 12:10:26 +02:00
|
|
|
<th class="{% if fields["email"] is defined and fields["email"].perm==0 %}no-visible{% endif %}">Email</th>
|
2019-10-21 14:09:24 +02:00
|
|
|
<th class="{% if fields["telephonenumber"] is defined and fields["telephonenumber"].perm==0 %}no-visible{% endif %}">Téléphone</th>
|
2019-07-04 16:11:50 +02:00
|
|
|
<th class="{% if fields["niveau01"] is defined and fields["niveau01"].perm==0 %}no-visible{% endif %}">{{ labelniveau01 }}</th>
|
2018-12-18 09:44:39 +01:00
|
|
|
{% if viewniveau02 %}
|
2019-07-04 16:11:50 +02:00
|
|
|
<th class="no-sort {% if fields["niveau02"] is defined and fields["niveau02"].perm==0 %}no-visible{% endif %}">{{ labelniveau02 }}</th>
|
2018-12-18 09:44:39 +01:00
|
|
|
{% endif %}
|
2019-07-04 16:11:50 +02:00
|
|
|
<th class="no-sort {% if fields["group"] is defined and fields["group"].perm==0 %}no-visible{% endif %}">Groupes</th>
|
2019-12-16 16:07:10 +01:00
|
|
|
<th class="{% if fields["job"] is defined and fields["job"].perm==0 %}no-visible{% endif %}">Métier</th>
|
|
|
|
<th class="{% if fields["position"] is defined and fields["position"].perm==0 %}no-visible{% endif %}">Fonction</th>
|
2020-06-09 09:53:25 +02:00
|
|
|
<th class="{% if fields["visitedate"] is defined and fields["visitedate"].perm==0 %}no-visible{% endif %}">Visite</th>
|
2019-07-04 16:11:50 +02:00
|
|
|
<th class="{% if fields["role"] is defined and fields["role"].perm==0 %}no-visible{% endif %}">Rôle</th>
|
2018-12-18 09:44:39 +01:00
|
|
|
</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({
|
2019-06-27 16:55:26 +02:00
|
|
|
columnDefs: [ { "targets": 'no-sort', "orderable": false },{ "targets": 'no-visible', "visible": false } ],
|
2018-12-18 09:44:39 +01:00
|
|
|
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" ]],
|
2019-07-23 15:32:35 +02:00
|
|
|
ajax: "{{ path('cadoles_core_user_user_ajax_list') }}",
|
2018-12-18 09:44:39 +01:00
|
|
|
{% endif %}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
{% endblock %}
|