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
Raw Normal View History

2015-09-04 10:41:57 +02:00
{% load i18n %}
<div id="content">
<div id="appbar">
<h2>
{% blocktrans with number=item.display_id %}
Item nr. {{ number }}
{% endblocktrans %}
</h2>
2015-09-25 15:32:11 +02:00
<form action="{% url 'lingo-pay' %}" method="POST">
<div id="item">
<h4 class="label">
2015-09-04 10:41:57 +02:00
{% blocktrans with label=item.subject %}
Label: {{ label }}
{% endblocktrans %}
</h4>
2015-09-25 15:32:11 +02:00
<div class="total_amount">
2015-09-04 10:41:57 +02:00
{% blocktrans with amount=item.total_amount %}
Total amount: {{ amount }}€
{% endblocktrans %}
2015-09-25 15:32:11 +02:00
</div>
2015-09-04 10:41:57 +02:00
{% if item.amount %}
2015-09-25 15:32:11 +02:00
<div class="amount">
2015-09-04 10:41:57 +02:00
{% blocktrans with amount=item.amount %}
Amount to pay: {{ amount }}€
{% endblocktrans %}
2015-09-25 15:32:11 +02:00
</div>
2015-09-04 10:41:57 +02:00
{% endif %}
2015-09-25 15:32:11 +02:00
<div class="issued">{% trans "Issued on:" %} {{ item.creation_date|date:"SHORT_DATE_FORMAT" }}</div>
2015-10-09 14:17:37 +02:00
{% if item.payment_date %}
2015-09-25 15:32:11 +02:00
<div class="paid">{% trans "Payed on:" %} {{ item.payment_date|date:"SHORT_DATE_FORMAT" }}</div>
2015-09-04 10:41:57 +02:00
{% endif %}
2015-10-09 14:17:37 +02:00
{% if item.online_payment and item.amount >= regie.payment_min_amount %}
2015-09-04 10:41:57 +02:00
{% csrf_token %}
<input type="hidden" name="regie" value="{{ regie.pk }}" />
2015-09-17 16:20:38 +02:00
<input type="hidden" name="item" value="{{ item.id }}" />
2015-09-04 10:41:57 +02:00
<button>{% trans "Pay" %}</button>
{% endif %}
2015-09-25 15:32:11 +02:00
</div>
</form>
2015-09-04 10:41:57 +02:00
</div>
</div>