lingo: 'view and pay' link if invoice online payable (#8422)

This commit is contained in:
Serghei Mihai 2015-09-30 16:08:05 +02:00 committed by Frédéric Péters
parent 3ffcc1c941
commit df0a09f23d
2 changed files with 10 additions and 4 deletions

View File

@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: lingo 0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2015-09-25 09:11+0000\n"
"POT-Creation-Date: 2015-09-30 14:24+0000\n"
"PO-Revision-Date: 2015-03-10 11:05+0100\n"
"Last-Translator: Frederic Peters <fpeters@entrouvert.com>\n"
"Language: French\n"
@ -212,11 +212,15 @@ msgstr ""
msgid "View"
msgstr "Voir"
#: lingo/templates/lingo/combo/items.html:29
#: lingo/templates/lingo/combo/items.html:27
msgid "and pay"
msgstr "et payer"
#: lingo/templates/lingo/combo/items.html:31
msgid "Download"
msgstr "Télécharger"
#: lingo/templates/lingo/combo/items.html:37
#: lingo/templates/lingo/combo/items.html:39
msgid "No items yet"
msgstr "Aucune facture"

View File

@ -23,7 +23,9 @@
{% endblocktrans %}
</td>
<td>
<a href="{% url 'view-item' regie_id=item.regie.pk item_id=item.id %}" rel="popup" class="icon-view">{% trans "View" %}</a>
<a href="{% url 'view-item' regie_id=item.regie.pk item_id=item.id %}" rel="popup" class="icon-view">{% trans "View" %}
{% if item.online_payment %}{% trans "and pay" %}{% endif %}
</a>
{% if item.has_pdf %} /
<a href="{% url 'download-item-pdf' regie_id=item.regie.pk item_id=item.id %}" class="icon-pdf">
{% trans "Download" %}</a>