ajout histo_edit.pt et calcul de l'évolution de la valeur de la part

This commit is contained in:
2017-07-30 22:07:50 +02:00
parent 294a23b042
commit 91e82c4831
11 changed files with 218 additions and 31 deletions

View File

@@ -4,6 +4,8 @@
<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> Ajout/retrait de cash</a>
</p>
<table id="histo_list" class="table table-striped table-bordered">
@@ -14,8 +16,9 @@
<th>Valeur Pf</th>
<th>Nb Part</th>
<th>Valeur Part</th>
<th>Nb Part ref</th>
<th>Cours ref</th>
<th>Valeur Part ref</th>
<th>No Id</th>
</tr>
</thead>
</table>
@@ -33,7 +36,14 @@
pageLength: 50,
bLengthChange: false,
columnDefs: [
{className:"text-right", "targets": [1,2,3,4,5,6]}
{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>';
},
},
]
});