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

@@ -0,0 +1,38 @@
<metal:block use-macro="main_template">
<div metal:fill-slot="content">
<div tal:condition="message" tal:content="message" class="alert alert-danger" />
<div class="row">
<div class="col-md-6">
<p>
<a href="allocation_edit/0" class="btn btn-success" role="button">
<span class="glyphicon glyphicon-plus"></span> Nouvelle catégorie</a>
</p>
<table id="categories_list" class="table table-condensed table-bordered">
<thead>
<tr>
<th>Classe</th>
<th class="text-right">% cible</th>
<th class="text-center">Type</th>
</tr>
</thead>
<tbody>
<tr tal:repeat="item items">
<td class="${item.bg_color}"><a href="allocation_edit/${item.no_cat}">${item.categorie}</a></td>
<td class="text-right">${item.pc_cible} %</td>
<td class="text-center">${item.type}</td>
</tr>
<tr>
<td class="text-right"><b>Total</b></td>
<td class="text-right"><b>${total} %</b></td>
<td></td>
</tr>
</tbody>
</table>
</div>
</div>
</div><!-- content -->
</metal:block>