2016-07-08 03:27:02 +02:00
|
|
|
<table class="table table-striped">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
2016-11-18 11:53:10 +01:00
|
|
|
<th>Article</th>
|
2016-07-08 03:27:02 +02:00
|
|
|
<th>Prix</th>
|
|
|
|
<th>Cotisation</th>
|
2016-11-18 11:53:10 +01:00
|
|
|
<th>Durée (mois)</th>
|
2016-07-08 03:27:02 +02:00
|
|
|
<th></th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
{% for article in article_list %}
|
|
|
|
<tr>
|
|
|
|
<td>{{ article.name }}</td>
|
|
|
|
<td>{{ article.prix }}</td>
|
|
|
|
<td>{{ article.cotisation }}</td>
|
|
|
|
<td>{{ article.duration }}</td>
|
2016-11-18 11:53:10 +01:00
|
|
|
<td class="text-right">
|
|
|
|
{% if is_trez %}
|
|
|
|
<a class="btn btn-primary btn-sm" role="button" title="Éditer" href="{% url 'cotisations:edit-article' article.id %}">
|
|
|
|
<i class="glyphicon glyphicon-edit"></i>
|
|
|
|
</a>
|
|
|
|
{% endif %}
|
|
|
|
<a class="btn btn-info btn-sm" role="button" title="Historique" href="{% url 'cotisations:history' 'article' article.id %}">
|
|
|
|
<i class="glyphicon glyphicon-time"></i>
|
|
|
|
</a>
|
|
|
|
</td>
|
2016-07-08 03:27:02 +02:00
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</table>
|
|
|
|
|