This repository has been archived on 2023-02-21. You can view files and clone it, but cannot push or open issues or pull requests.
lingo-obsolete/lingo/templates/lingo/combo/item.html

42 lines
1.4 KiB
HTML

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