added societes.pt and societe_edit.pt

This commit is contained in:
2021-03-24 16:28:06 +01:00
parent 6ab266be48
commit cb3035d72c
8 changed files with 368 additions and 8 deletions

View File

@@ -0,0 +1,55 @@
<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="cabinets" class="table table-striped table-bordered table-condensed">
<thead>
<tr>
<th>Code</th>
<th>Nom</th>
<th>Email</th>
<th>Télépone</th>
<th>BIC</th>
<th>IBAN</th>
<th>Modif 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');
$('#cabinets').DataTable({
data: dataSet,
pageLength: 50,
bLengthChange: false,
language: {
url: 'https://cdn.datatables.net/plug-ins/1.10.16/i18n/French.json'
},
order: [[ 0, "asc" ]],
columnDefs: [
{ targets: 1,
"render": function (data, type, row, meta) {
// ajouter un link vers la fiche élève
return '<a href="/societe_edit/' + row[0] + '">' + data + '</a>';
},
},
],
});
});
</script>
</div><!-- content -->
</metal:block>