ninegitea/templates/Group/list.html.twig
2023-12-22 13:53:10 +01:00

61 lines
2.2 KiB
Twig

{% extends "base.html.twig" %}
{% block body %}
<h1 class="page-header">
GROUPES
</h1>
<p><a class="btn btn-success" href={{ path('app_group_submit') }}>Ajouter</a></p>
<div class="card">
<div class="card-header">
<i class="fa fa-table fa-fw"></i> Liste des Groupes
</div>
<div class="card-body">
<div class="dataTable_wrapper">
<table class="table table-striped table-bordered table-hover" id="dataTables" style="width:100%">
<thead>
<tr>
<th width="70px" class="no-sort">Action</th>
<th>Nom</th>
<th>Source</th>
</tr>
</thead>
<tbody>
{% for group in groups %}
<tr>
<td>
{% if not group.ldapfilter and not group.idexternal %}
<a href="{{path("app_group_update",{id:group.id})}}"><i class="fa fa-file"></i></a>
{% endif %}
</td>
<td>{{group.name}}</td>
<td>
{% if group.ldapfilter %}
LDAP
{% elseif group.idexternal %}
Ninegate
{% else %}
Interne
{% endif %}
</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
</div>
{% endblock %}
{% block localjavascript %}
$(document).ready(function() {
$('#dataTables').DataTable({
columnDefs: [ { "targets": "no-sort", "orderable": false }, { "targets": "no-string", "type" : "num" } ],
responsive: true,
iDisplayLength: 100,
order: [[ 1, "asc" ]]
});
});
{% endblock %}