combo/combo/apps/lingo/templates/lingo/combo/items.html

43 lines
1.2 KiB
HTML

{% load i18n %}
<h3>{{ title|safe }}</h3>
{% if items %}
<table class="invoices">
<thead>
<tr>
<th>{% trans "Number" %}</th>
<th>{% trans "Label" %}</th>
<th>{% trans "Issue date" %}</th>
<th>{% trans "Payment limit date" %}</th>
<th>{% trans "Amount" %}</th>
<td></td>
</tr>
</thead>
<tbody>
{% for item in items %}
<tr>
<td>{{ item.display_id }}</td>
<td>{{ item.subject }}</td>
<td>{{ item.creation_date|date:"SHORT_DATE_FORMAT" }}</td>
<td>{{ item.payment_limit_date|date:"SHORT_DATE_FORMAT" }}</td>
<td class="amount">{% blocktrans with amount=item.total_amount|floatformat:"2" %}
{{ amount }}€
{% endblocktrans %}
</td>
<td>
<a href="{% url 'view-item' regie_id=item.regie.pk item_id=item.id %}" rel="popup" class="icon-view">{% trans "View" %}
{% if item.online_payment and item.amount >= item.regie.payment_min_amount %}{% trans "and pay" %}{% endif %}
</a>
{% 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>
</tr>
{% endfor %}
</tbody>
</table>
{% else %}
{% trans "No items yet" %}
{% endif %}