2022-07-21 16:15:47 +02:00
|
|
|
{% extends 'base.html.twig' %}
|
|
|
|
|
|
|
|
{% block body %}
|
|
|
|
<h1 class="page-header">Gestion des Groupes </h1>
|
|
|
|
|
2022-07-26 16:03:53 +02:00
|
|
|
<p>
|
2022-07-21 16:15:47 +02:00
|
|
|
{%if access=="admin" %}
|
2022-07-26 16:03:53 +02:00
|
|
|
<a class="btn btn-success" href={{ path('app_'~access~'_group_submit') }}>Ajouter</a>
|
2022-07-21 16:15:47 +02:00
|
|
|
{%elseif access=="user" and app.session.get("submitgroup") %}
|
2022-07-26 16:03:53 +02:00
|
|
|
<a class="btn btn-success" href={{ path('app_'~access~'_group_submit') }}>Ajouter</a>
|
2022-07-21 16:15:47 +02:00
|
|
|
{% endif %}
|
2022-07-26 16:03:53 +02:00
|
|
|
|
|
|
|
{% if auditUse and (access=="admin" or access=="audit") %}
|
|
|
|
<a class="btn btn-secondary float-end" href="{{ path("app_"~access~"_audit_render",{entityname:"Group"}) }}"><i class="fas fa-eye fa-fw"></i> Audit</a>
|
|
|
|
{% endif %}
|
|
|
|
</p>
|
|
|
|
|
2022-07-21 16:15:47 +02:00
|
|
|
<div class="card mt-4">
|
|
|
|
<div class="card-header">
|
|
|
|
<i class="fa fa-table fa-fw"></i> Liste des Groupes
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="card-body">
|
|
|
|
<table class="table table-striped table-bordered table-hover" id="dataTables" style="width:100%; font-size:11px;">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th width="70px" class="no-sort">Action</th>
|
|
|
|
<th>Groupe</th>
|
|
|
|
<th>Groupe de Travail</th>
|
|
|
|
<th>Ouvert</th>
|
|
|
|
<th>Propriétaire</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block localscript %}
|
|
|
|
<script>
|
|
|
|
$(document).ready(function() {
|
|
|
|
$('#dataTables').DataTable({
|
|
|
|
columnDefs: [ { "targets": 'no-sort', "orderable": false } ],
|
|
|
|
responsive: true,
|
|
|
|
iDisplayLength: 100,
|
|
|
|
order: [[ 1, "asc" ]],
|
|
|
|
processing: true,
|
|
|
|
serverSide: true,
|
|
|
|
ajax: "{{ path('app_'~access~'_group_tablelist') }}",
|
|
|
|
});
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
{% endblock %}
|