améliorer la page d'accueil
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
<metal:block use-macro="main_template">
|
||||
<div metal:fill-slot="content">
|
||||
|
||||
<div tal:condition="message" tal:content="message" class="alert alert-danger" />
|
||||
<div tal:condition="message" tal:content="message" class="alert alert-info" />
|
||||
|
||||
<form id="actif_list-form" action="${url}" method="post">
|
||||
<div class="form-group">
|
||||
<div class="form-group">
|
||||
@@ -19,25 +20,37 @@
|
||||
<th>Catégorie</th>
|
||||
<th>Symbole</th>
|
||||
<th>Libellé</th>
|
||||
<th>Nombre</th>
|
||||
<th>Cours</th>
|
||||
<th>PRU</th>
|
||||
<th>Valeur</th>
|
||||
<th>Plus-Value</th>
|
||||
<th class="text-right">Nombre</th>
|
||||
<th class="text-right">PRU</th>
|
||||
<th class="text-right">Cours</th>
|
||||
<th class="text-right">Valeur</th>
|
||||
<th class="text-right">+/- Valeur</th>
|
||||
<th class="text-right">% de +/-</th>
|
||||
<th class="text-right">% PF</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr tal:repeat="ligne items">
|
||||
<td class="${ligne.bg}">${ligne.categorie}</td>
|
||||
<td>${ligne.symbole}</td>
|
||||
<td tal:condition="ligne.categorie[:6]=='Action'"><a href="actif_edit/${ligne.no_id}">${ligne.libelle}</a></td>
|
||||
<td tal:condition="ligne.categorie[:6]<>'Action'"><a href="actif2_edit/${ligne.no_id}">${ligne.libelle}</a></td>
|
||||
<td tal:condition="ligne.type=='ACTION'"><a href="actif_edit/${ligne.no_id}">${ligne.libelle}</a></td>
|
||||
<td tal:condition="ligne.type<>'ACTION'"><a href="actif2_edit/${ligne.no_id}">${ligne.libelle}</a></td>
|
||||
<td class="text-right">${ligne.nombre}</td>
|
||||
<td class="text-right">${ligne.cours}</td>
|
||||
<td class="text-right">${layout.to_euro(ligne.pru)}</td>
|
||||
<td class="text-right">${ligne.cours}</td>
|
||||
<td class="text-right">${layout.to_euro(ligne.valeur)}</td>
|
||||
<td tal:condition="ligne.plus_value>=0" class="text-right" style="color: green;">${layout.to_euro(ligne.plus_value)}</td>
|
||||
<td tal:condition="ligne.plus_value <0" class="text-right" style="color: red;">${layout.to_euro(ligne.plus_value)}</td>
|
||||
<td tal:condition="ligne.pc_plusvalue>=0" class="text-right" style="color: green;">${layout.to_percent(ligne.pc_plusvalue)}</td>
|
||||
<td tal:condition="ligne.pc_plusvalue <0" class="text-right" style="color: red;">${layout.to_percent(ligne.pc_plusvalue)}</td>
|
||||
<td class="text-right">${ligne.pc_allocation} %</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="text-right" colspan="6"><b>Total</b></td>
|
||||
<td class="text-right"><b>${layout.to_euro(total_valeur)}</b></td>
|
||||
<td class="text-right"><b>${layout.to_euro(total_pv)}</b></td>
|
||||
<td class="text-right"><b>${layout.to_percent(total_pc_value)}</b></td>
|
||||
<td class="text-right"><b>100.0 %</b></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
Reference in New Issue
Block a user