57 lines
1.7 KiB
XML
57 lines
1.7 KiB
XML
<metal:block use-macro="main_template">
|
|
<div metal:fill-slot="content">
|
|
|
|
<p>
|
|
<a href="${request.application_url}/parametres" class="btn btn-default" role="button">
|
|
<span class="glyphicon glyphicon-chevron-left"></span> Retour</a>
|
|
<a href="${request.application_url}/permis_edit/0" class="btn btn-success" role="button">
|
|
<span class="glyphicon glyphicon-plus"></span> Nouveau permis</a>
|
|
</p>
|
|
|
|
<table id="permis_list" class="table table-condensed table-striped table-bordered">
|
|
<thead>
|
|
<tr>
|
|
<th>Catégorie</th>
|
|
<th>Libellé</th>
|
|
<th>Examen</th>
|
|
<th class="text-right">En-cours autorisé</th>
|
|
<th class="text-right">Plafond résa</th>
|
|
</tr>
|
|
</thead>
|
|
</table>
|
|
|
|
<br />
|
|
<br />
|
|
|
|
<script type="text/javascript">
|
|
var dataSet = ${dt_data};
|
|
|
|
$(document).ready(function() {
|
|
$.fn.dataTable.moment('DD-MM-YYYY HH:mm');
|
|
$('#permis_list').DataTable({
|
|
data: dataSet,
|
|
pageLength: 100,
|
|
bLengthChange: false,
|
|
searching: false,
|
|
language: {
|
|
url: 'https://cdn.datatables.net/plug-ins/1.10.16/i18n/French.json'
|
|
},
|
|
columnDefs: [
|
|
{ className: "text-right", "targets": [3,4] },
|
|
{ targets: 0,
|
|
render: function (data, type, full, meta) {
|
|
// ajouter un link vers le formulaire
|
|
return '<a href="/permis_edit/' + data + '">' + data + '</a>';
|
|
},
|
|
},
|
|
]
|
|
});
|
|
|
|
});
|
|
</script>
|
|
|
|
</div><!-- content -->
|
|
</metal:block>
|
|
|
|
|