2015-09-04 11:39:20 +02:00
|
|
|
{% load i18n %}
|
|
|
|
|
|
|
|
<h3>{{ title|safe }}</h3>
|
|
|
|
{% if items %}
|
|
|
|
<table id="items">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<td>{% trans "Number" %}</td>
|
|
|
|
<td>{% trans "Label" %}</td>
|
|
|
|
<td>{% trans "Issue date" %}</td>
|
|
|
|
<td>{% trans "Amount" %}</td>
|
2015-09-03 16:03:44 +02:00
|
|
|
<td></td>
|
2015-09-04 11:39:20 +02:00
|
|
|
</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>
|
2015-09-03 16:03:44 +02:00
|
|
|
<td>
|
|
|
|
{% if item.has_pdf %}
|
|
|
|
<a href="{% url 'download-item-pdf' regie_id=item.regie.pk item_id=item.id %}" class="icon-pdf">
|
|
|
|
{% trans "Download" %}</a>
|
|
|
|
{% endif %}
|
|
|
|
</td>
|
2015-09-04 11:39:20 +02:00
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
{% else %}
|
|
|
|
{% trans "No items yet" %}
|
|
|
|
{% endif %}
|