From 8beb0b820cb55180d660b4b9f8d3c35dae45d701 Mon Sep 17 00:00:00 2001 From: Serghei Mihai Date: Mon, 21 Sep 2015 19:12:37 +0200 Subject: [PATCH] customize invoices page (#8210) --- templates/lingo/combo/item.html | 29 +++++++++++++++++++++++++ templates/lingo/combo/items.html | 37 ++++++++++++++++++++++++++++++++ 2 files changed, 66 insertions(+) create mode 100644 templates/lingo/combo/item.html create mode 100644 templates/lingo/combo/items.html diff --git a/templates/lingo/combo/item.html b/templates/lingo/combo/item.html new file mode 100644 index 0000000..4bf416e --- /dev/null +++ b/templates/lingo/combo/item.html @@ -0,0 +1,29 @@ +
+
+

+ Facture numéro {{ item.display_id }} +

+
+
+

Libellé {{ item.subject }} +

+

Montant total {{item.total_amount }}€ +

+ {% if item.amount %} +

Montant restant à payer: {{ item.amount }}€ +

+ {% endif %} +

Emise le {{ item.creation_date|date:"SHORT_DATE_FORMAT" }}

+ {% if item.payment_date %} +

Payée le {{ item.payment_date|date:"SHORT_DATE_FORMAT" }}

+ {% endif %} + {% if item.amount %} + {% csrf_token %} + + + + {% endif %} +
+
+
+
diff --git a/templates/lingo/combo/items.html b/templates/lingo/combo/items.html new file mode 100644 index 0000000..d1028e7 --- /dev/null +++ b/templates/lingo/combo/items.html @@ -0,0 +1,37 @@ +{% load i18n %} + +

{{ title|safe }}

+{% if items %} + + + + + + + + + + + + {% for item in items %} + + + + + + + + {% endfor %} + +
NuméroLibelléDate d'émissionMontant(TTC)
{{ item.display_id }}{{ item.subject }}{{ item.creation_date|date:"SHORT_DATE_FORMAT" }}{% blocktrans with amount=item.total_amount %} + {{ amount }}€ + {% endblocktrans %} + + Voir + {% if item.has_pdf %} / + Télécharger + {% endif %} +
+{% else %} +Aucune facture +{% endif %}