added allocation_list.pt and edit.pt

This commit is contained in:
2017-07-26 10:08:09 +02:00
parent c24efa00d9
commit ae819f49fa
11 changed files with 239 additions and 123 deletions

View File

@@ -18,25 +18,22 @@
</thead>
<tbody>
<tr tal:repeat="item items">
<td class="${item.bg}"><a href="categorie_edit/${item.no_cat}">${item.categorie}</a></td>
<td class="${item.bg_color}">${item.categorie}</td>
<td class="text-right">${item.pc_cible} %</td>
<td class="text-right">${layout.to_percent(item.pc_atteint)}</td>
<td class="text-right">${layout.to_percent(item.pc_atteint - item.pc_cible)}</td>
<td tal:condition="(item.pc_atteint - item.pc_cible)>=0" class="text-right" style="color: green;">${layout.to_percent(item.pc_atteint - item.pc_cible)}</td>
<td tal:condition="(item.pc_atteint - item.pc_cible) <0" class="text-right" style="color: red;">${layout.to_percent(item.pc_atteint - item.pc_cible)}</td>
<td class="text-right">${layout.to_euro(item.valeur)}</td>
</tr>
</tbody>
</table>
</div>
<p>
<a href="categorie_edit/0" class="btn btn-success" role="button">
<span class="glyphicon glyphicon-plus"></span> Nouvelle catégorie</a>
</p>
</div>
<div class="row">
<h3>+ diversification + bas coût</h3>
<h3>+ Diversification à coût minimal</h3>
<p>"<i>Diversification is not determined by the number of securities held.</i>"
<a hhref="http://www.etf.com/sections/index-investor-corner">Larry Swedroe</a></p>
<a href="http://www.etf.com/sections/index-investor-corner" target="_blank">Larry Swedroe</a></p>
<div class="col-md-8">
<table id="actifs_list" class="table table-condensed table-bordered">
<thead>
@@ -51,7 +48,7 @@
</thead>
<tbody>
<tr tal:repeat="ligne actifs">
<td class="${ligne.bg}">${ligne.categorie}</td>
<td class="${ligne.bg_color}">${ligne.categorie}</td>
<td>${ligne.libelle}</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>