87 lines
3.5 KiB
XML
87 lines
3.5 KiB
XML
<metal:block use-macro="main_template">
|
|
<div metal:fill-slot="content">
|
|
|
|
<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">
|
|
<button class="btn btn-primary" type="submit" name="form.submitted">
|
|
<span class="glyphicon glyphicon-refresh"></span> MAJ du portefeuille</button>
|
|
<a href="#" class="btn btn-success" role="button"
|
|
data-toggle="modal" data-target="#choixTypeActif"><span class="glyphicon glyphicon-plus"></span> Nouvel actif</a>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
|
|
<table id="actifs_list" class="table table-condensed table-bordered">
|
|
<thead>
|
|
<tr>
|
|
<th>Catégorie</th>
|
|
<th>Symbole</th>
|
|
<th>Libellé</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_color}">${ligne.categorie}</td>
|
|
<td>${ligne.symbole}</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">${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>
|
|
|
|
<br />
|
|
<br />
|
|
<!-- MODAL POPUP : Affichage de la FAQ -->
|
|
<div class="modal fade" id="choixTypeActif" tabindex="-1" role="dialog" aria-labelledby="choixTypeActif" aria-hidden="true">
|
|
<div class="modal-dialog modal-sm">
|
|
<div class="modal-content">
|
|
<div class="modal-header">
|
|
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span class="glyphicon glyphicon-remove"></span></button>
|
|
<h4 class="modal-title" id="choixTypeActif">Choix du type d'actif à créer</h4>
|
|
</div>
|
|
<div class="modal-body">
|
|
<p>
|
|
Voulez-vous créer un actif de type <br />
|
|
<br />
|
|
<a href="${request.application_url}/actif_edit/0" class="btn btn-primary" role="button">
|
|
ACTION</a> ou
|
|
<a href="${request.application_url}/actif2_edit/0" class="btn btn-warning" role="button">
|
|
AUTRE</a>
|
|
<br />
|
|
<br />
|
|
<p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
</div><!-- content -->
|
|
</metal:block>
|
|
|