38 lines
948 B
HTML
38 lines
948 B
HTML
{% load i18n %}
|
|
|
|
<h3>{{ title|safe }}</h3>
|
|
{% if items %}
|
|
<table id="items">
|
|
<thead>
|
|
<tr>
|
|
<td>Numéro</td>
|
|
<td>Libellé</td>
|
|
<td>Date d'émission</td>
|
|
<td>Montant(TTC)</td>
|
|
<td></td>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for item in items %}
|
|
<tr class="{% cycle 'lightgrey' 'white' %}">
|
|
<td>{{ item.display_id }}</td>
|
|
<td>{{ item.subject }}</td>
|
|
<td>{{ item.creation_date|date:"SHORT_DATE_FORMAT" }}</td>
|
|
<td>{% blocktrans with amount=item.total_amount %}
|
|
{{ amount }}€
|
|
{% endblocktrans %}
|
|
</td>
|
|
<td>
|
|
<a href="{% url 'view-item' regie_id=item.regie.pk item_id=item.id %}" rel="popup" class="icon-view">Voir</a>
|
|
{% if item.has_pdf %} /
|
|
<a href="{% url 'download-item-pdf' regie_id=item.regie.pk item_id=item.id %}" class="icon-pdf">Télécharger</a>
|
|
{% endif %}
|
|
</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
{% else %}
|
|
Aucune facture
|
|
{% endif %}
|