Files
2021-02-01 07:00:15 +01:00

60 lines
1.8 KiB
XML

<metal:block use-macro="main_template">
<div metal:fill-slot="content">
<br />
<form id="rappels-form" role="form" action="${url}" method="post" >
<div class="form-group">
<button class="btn btn-success" type="submit" name="form.generate">
<span class="glyphicon glyphicon-flash"></span>&nbsp;Générer les rappels</button>
<button class="btn btn-primary" type="submit" name="form.emailing">
<span class="glyphicon glyphicon-send"></span>&nbsp;Envoyer les rappels (${nbRappels})</button>
</div>
</form>
<table id="rappels_rdv" class="table table-condensed table-striped table-bordered">
<thead>
<tr>
<th>Date RDV</th>
<th>Dossier</th>
<th>Nom</th>
<th>Email</th>
<th>Avec</th>
<th>Envoyé le</th>
<th>Créé le</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');
$('#rappels_rdv').DataTable({
data: dataSet,
pageLength: 100,
bLengthChange: false,
language: {
url: 'https://cdn.datatables.net/plug-ins/1.10.16/i18n/French.json'
},
columnDefs: [
{ "targets": 1,
"render": function (data, type, full, meta) {
// ajouter un link vers le formulaire
return '<a href="/dossier_view/' + data + '">' + data + '</a>';
},
},
],
order: [[5, 'des']],
});
});
</script>
</div><!-- content -->
</metal:block>