ajout categories list & edit

This commit is contained in:
CAO Thien-An
2017-07-24 12:49:17 +02:00
parent a2c5ac2cfe
commit de44fc7622
6 changed files with 169 additions and 4 deletions

View File

@@ -2,6 +2,34 @@
<div metal:fill-slot="content">
<div tal:condition="message" tal:content="message" class="alert alert-danger" />
<p>
<a href="categorie_edit/0" class="btn btn-success" role="button">
<span class="glyphicon glyphicon-plus"></span> Nouvelle categorie</a>
</p>
<div class="col-md-6">
<table id="categories_list" class="table table-striped table-bordered">
<thead>
<tr>
<th>Categorie</th>
<th class="text-right">% cible</th>
<th class="text-right">% atteint</th>
<th class="text-right">Valeur</th>
</tr>
</thead>
<tbody>
<tr tal:repeat="item items">
<td class="${item.bg}"><a href="categorie_edit/${item.no_cat}">${item.categorie}</a></td>
<td class="text-right">${layout.to_percent(item.pc_cible)}</td>
<td class="text-right">${layout.to_percent(item.pc_atteint)}</td>
<td class="text-right">${layout.to_euro(item.valeur)}</td>
</tr>
</tbody>
</table>
</div>
<br />
<br />
</div><!-- content -->
</metal:block>