63 lines
1.8 KiB
XML
63 lines
1.8 KiB
XML
<metal:block use-macro="main_template">
|
|
<div metal:fill-slot="content">
|
|
|
|
<p>
|
|
<a href="${request.application_url}/" class="btn btn-default" role="button">
|
|
<span class="glyphicon glyphicon-chevron-left"></span> Retour</a>
|
|
</p>
|
|
|
|
<table id="users_list" class="table table-striped table-bordered">
|
|
<thead>
|
|
<tr>
|
|
<th>Rapport</th>
|
|
<th>Intervenu</th>
|
|
<th>Validé</th>
|
|
<th>Généré</th>
|
|
<th>Chantier</th>
|
|
<th>Client</th>
|
|
<th>No sinistre</th>
|
|
<th>Auteur</th>
|
|
</tr>
|
|
</thead>
|
|
</table>
|
|
|
|
<br />
|
|
<br />
|
|
|
|
<script type="text/javascript">
|
|
var dataSet = ${dt_data};
|
|
|
|
$(document).ready(function() {
|
|
$.fn.dataTable.moment('DD-MM-YYYY');
|
|
$('#users_list').DataTable({
|
|
data: dataSet,
|
|
pageLength: 50,
|
|
bLengthChange: false,
|
|
language: {
|
|
url: 'https://cdn.datatables.net/plug-ins/1.10.16/i18n/French.json'
|
|
},
|
|
columnDefs: [
|
|
{ "targets": 0,
|
|
"render": function (data, type, row, meta) {
|
|
// ajouter un link vers le rapport
|
|
return '<a href="/rdf_view/' + data + '">' + data + '</a>';
|
|
},
|
|
},
|
|
{ "targets": 4,
|
|
"render": function (data, type, row, meta) {
|
|
// ajouter un link vers le dossier
|
|
return '<a href="/dossier_view/PL-' + data.substr(0, 6) + '">' + data + '</a>';
|
|
},
|
|
},
|
|
],
|
|
order: [[ 0, "desc" ]],
|
|
});
|
|
|
|
});
|
|
</script>
|
|
|
|
</div><!-- content -->
|
|
</metal:block>
|
|
|
|
|