supprimer allocation_list.pt, appel de allocation_edit.pt depuis home

This commit is contained in:
2018-08-03 22:22:50 +02:00
parent b6c2efd0aa
commit 46d15f5a7f
6 changed files with 14 additions and 109 deletions

View File

@@ -3,6 +3,10 @@
<div tal:condition="message" tal:content="message" class="alert alert-danger" />
<p>
<a href="allocation_edit/0" class="btn btn-success" role="button">
<span class="glyphicon glyphicon-plus"></span> Nouvelle classe</a>
</p>
<div class="row">
<div class="col-md-6">
<table id="categories_list" class="table table-condensed table-bordered">
@@ -18,7 +22,7 @@
<tbody>
<tr tal:repeat="item items">
<td class="${item.bg_color}">${item.classe}</td>
<td class="text-right">${item.pc_cible} %</td>
<td class="text-right"><a href="allocation_edit/${item.no_cat}">${item.pc_cible} %</a></td>
<td class="text-right">${layout.to_percent(item.pc_atteint,1)}</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,1)}</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,1)}</td>
@@ -33,7 +37,7 @@
<table id="portfolio" class="table table-condensed table-bordered">
<thead>
<tr>
<th>Porteffeuille</th>
<th>Portefeuille</th>
<th class="text-right">Montant</th>
<th class="text-right">%</th>
</tr>