57 lines
1.6 KiB
XML
57 lines
1.6 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>
|
|
<a href="histo_edit/0" class="btn btn-success" role="button">
|
|
<span class="glyphicon glyphicon-plus"></span> Maj valeur part</a>
|
|
</p>
|
|
|
|
<table id="histo_list" class="table table-striped table-bordered">
|
|
<thead>
|
|
<tr>
|
|
<th>Date</th>
|
|
<th>Mvt Cash</th>
|
|
<th>Valeur Pf</th>
|
|
<th>Nb Part</th>
|
|
<th>Valeur Part</th>
|
|
<th>Cours ref</th>
|
|
<th>Valeur Part ref</th>
|
|
<th>No Id</th>
|
|
</tr>
|
|
</thead>
|
|
</table>
|
|
|
|
<br />
|
|
<br />
|
|
|
|
<script type="text/javascript">
|
|
var dataSet = ${dt_data};
|
|
|
|
$(document).ready(function() {
|
|
$.fn.dataTable.moment('DD/MM/YYYY');
|
|
$('#histo_list').DataTable({
|
|
data: dataSet,
|
|
pageLength: 50,
|
|
bLengthChange: false,
|
|
columnDefs: [
|
|
{className:"text-right", "targets": [1,2,3,4,5,6]},
|
|
{className:"text-center", "targets": [7]},
|
|
{ "targets": 7,
|
|
"render": function (data, type, full, meta) {
|
|
// ajouter un link vers le formulaire
|
|
return '<a href="/histo_edit/' + data + '">' + data + '</a>';
|
|
},
|
|
},
|
|
]
|
|
});
|
|
|
|
});
|
|
</script>
|
|
|
|
</div><!-- content -->
|
|
</metal:block>
|
|
|
|
|