lingo: update item view template (#8352)
This commit is contained in:
parent
0e1fb7dc68
commit
3ffcc1c941
|
@ -6,28 +6,28 @@
|
|||
Item nr. {{ number }}
|
||||
{% endblocktrans %}
|
||||
</h2>
|
||||
<div id="item">
|
||||
<form action="{% url 'lingo-pay' %}" method="POST">
|
||||
<h4>
|
||||
<form action="{% url 'lingo-pay' %}" method="POST">
|
||||
<div id="item">
|
||||
<h4 class="label">
|
||||
{% blocktrans with label=item.subject %}
|
||||
Label: {{ label }}
|
||||
{% endblocktrans %}
|
||||
</h4>
|
||||
<p>
|
||||
<div class="total_amount">
|
||||
{% blocktrans with amount=item.total_amount %}
|
||||
Total amount: {{ amount }}€
|
||||
{% endblocktrans %}
|
||||
</p>
|
||||
</div>
|
||||
{% if item.amount %}
|
||||
<p>
|
||||
<div class="amount">
|
||||
{% blocktrans with amount=item.amount %}
|
||||
Amount to pay: {{ amount }}€
|
||||
{% endblocktrans %}
|
||||
</p>
|
||||
</div>
|
||||
{% endif %}
|
||||
<p>{% trans "Issued on:" %} {{ item.creation_date|date:"SHORT_DATE_FORMAT" }}</p>
|
||||
<div class="issued">{% trans "Issued on:" %} {{ item.creation_date|date:"SHORT_DATE_FORMAT" }}</div>
|
||||
{% if item.payment_date %}
|
||||
<p>{% trans "Payed on:" %} {{ item.payment_date|date:"SHORT_DATE_FORMAT" }}</p>
|
||||
<div class="paid">{% trans "Payed on:" %} {{ item.payment_date|date:"SHORT_DATE_FORMAT" }}</div>
|
||||
{% endif %}
|
||||
{% if item.online_payment %}
|
||||
{% csrf_token %}
|
||||
|
@ -35,7 +35,7 @@
|
|||
<input type="hidden" name="item" value="{{ item.id }}" />
|
||||
<button>{% trans "Pay" %}</button>
|
||||
{% endif %}
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue