nineskeletor/templates/Niveau03/list.html.twig
afornerot be78875030
Some checks failed
Cadoles/nineskeletor/pipeline/head Build started...
Cadoles/nineskeletor/pipeline/pr-master There was a failure building this commit
fixevalidator
2023-01-05 20:07:17 +01:00

48 lines
1.6 KiB
Twig
Executable File

{% extends 'base.html.twig' %}
{% block body %}
<h1 class="page-header">Gestion des {{ appNiveau03labels }} </h1>
<p>
<a class="btn btn-success" href={{ path('app_'~access~'_niveau03_submit') }}>Ajouter</a>
{% if auditUse and (access=="admin" or access=="audit") %}
<a class="btn btn-secondary float-end" href="{{ path("app_"~access~"_audit_render",{entityname:"Niveau03"}) }}"><i class="fas fa-eye fa-fw"></i> Audit</a>
{% endif %}
</p>
<div class="card mt-4">
<div class="card-header">
<i class="fa fa-table fa-fw"></i> Liste des {{ appNiveau03labels }}
</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>
<th>{{appNiveau02label}}</th>
<th>{{appNiveau03label}}</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~'_niveau03_tablelist') }}",
});
});
</script>
{% endblock %}