lingo: don't display invoice subject if it has none (#13741)

This commit is contained in:
Frédéric Péters 2016-10-25 13:57:02 +02:00
parent 7ecd312dfb
commit a63c3575d6
1 changed files with 2 additions and 0 deletions

View File

@ -8,11 +8,13 @@
</h2>
<form action="{% url 'lingo-pay' %}" method="POST">
<div id="item">
{% if item.subject %}
<h4 class="label">
{% blocktrans with label=item.subject %}
Label: {{ label }}
{% endblocktrans %}
</h4>
{% endif %}
<div class="total_amount">
{% blocktrans with amount=item.total_amount|floatformat:"2" %}
Total amount: <span class="amount">{{ amount }}€</span>