nineskeletor/templates/Niveau01/list.html.twig

48 lines
1.6 KiB
Twig
Raw Normal View History

2022-07-21 16:15:47 +02:00
{% extends 'base.html.twig' %}
{% block body %}
<h1 class="page-header">Gestion des {{ appNiveau01label }}s </h1>
<p><a class="btn btn-success" href={{ path('app_admin_niveau01_submit') }}>Ajouter</a></p>
<div class="card mt-4">
<div class="card-header">
<i class="fa fa-table fa-fw"></i> Liste des {{ appNiveau01label }}s
</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>{{appNiveau01label}}</th>
{% if appMasteridentity=="LDAP" or appSynchro=="LDAP2NINE" %}
<th class="no-sort">Filtre LDAP</th>
{% endif %}
{% if appMasteridentity=="SSO" %}
<th class="no-sort">Attributs SSO</th>
{% endif %}
</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_admin_niveau01_tablelist') }}",
});
});
</script>
{% endblock %}