42 lines
1.3 KiB
HTML
42 lines
1.3 KiB
HTML
{% load i18n %}
|
|
<div id="content">
|
|
<div id="appbar">
|
|
<h2>
|
|
{% blocktrans with number=item.display_id %}
|
|
Item nr. {{ number }}
|
|
{% endblocktrans %}
|
|
</h2>
|
|
<div id="item">
|
|
<form action="{% url 'lingo-pay' %}" method="POST">
|
|
<h4>
|
|
{% blocktrans with label=item.subject %}
|
|
Label: {{ label }}
|
|
{% endblocktrans %}
|
|
</h4>
|
|
<p>
|
|
{% blocktrans with amount=item.total_amount %}
|
|
Total amount: {{ amount }}€
|
|
{% endblocktrans %}
|
|
</p>
|
|
{% if item.amount %}
|
|
<p>
|
|
{% blocktrans with amount=item.amount %}
|
|
Amount to pay: {{ amount }}€
|
|
{% endblocktrans %}
|
|
</p>
|
|
{% endif %}
|
|
<p>{% trans "Issued on : " %} {{ item.creation_date|date:"SHORT_DATE_FORMAT" }}</p>
|
|
{% if item.payment_date %}
|
|
<p>{% trans "Payed on : " %} {{ item.payment_date|date:"SHORT_DATE_FORMAT" }}</p>
|
|
{% endif %}
|
|
{% if item.amount %}
|
|
{% csrf_token %}
|
|
<input type="hidden" name="regie" value="{{ regie.pk }}" />
|
|
<input type="hidden" name="item" value="{{ item.id }}" />
|
|
<button>{% trans "Pay" %}</button>
|
|
{% endif %}
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</div>
|