56 lines
1.5 KiB
XML
56 lines
1.5 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>
|
|
</p>
|
|
|
|
<table id="pass_rousseau" class="table table-condensed table-striped table-bordered">
|
|
<thead>
|
|
<tr>
|
|
<th>Acheté le</th>
|
|
<th>Identifiant</th>
|
|
<th>Mot de passe</th>
|
|
<th>Expire le</th>
|
|
<th>Vendu le</th>
|
|
<th>Vendu à</th>
|
|
<th>Code postal</th>
|
|
</tr>
|
|
</thead>
|
|
</table>
|
|
|
|
<br />
|
|
<br />
|
|
|
|
<script type="text/javascript">
|
|
var dataSet = ${dt_data};
|
|
|
|
$(document).ready(function() {
|
|
$.fn.dataTable.moment('DD-MM-YYYY');
|
|
$('#pass_rousseau').DataTable({
|
|
data: dataSet,
|
|
pageLength: 100,
|
|
bLengthChange: false,
|
|
order: [[ 0, "desc" ]],
|
|
language: {
|
|
url: 'https://cdn.datatables.net/plug-ins/1.10.16/i18n/French.json'
|
|
},
|
|
columnDefs: [
|
|
{ targets: 5,
|
|
"render": function (data, type, full, meta) {
|
|
// ajouter un link vers la fiche élève
|
|
return '<a href="/fiche_eleve/' + data + '">' + data + '</a>';
|
|
},
|
|
},
|
|
]
|
|
});
|
|
|
|
});
|
|
</script>
|
|
|
|
</div><!-- content -->
|
|
</metal:block>
|
|
|
|
|