From b3778f596ddb9ebd3afa9af833c8b05049505abc Mon Sep 17 00:00:00 2001 From: Guillaume Ayoub Date: Mon, 11 Jun 2018 14:10:46 +0200 Subject: [PATCH] =?UTF-8?q?Modification=20du=20mod=C3=A8le=20de=20document?= =?UTF-8?q?s?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 2 + factures/commun/_layout.jinja2 | 116 +++++++++++++++++---------------- factures/commun/style.css | 4 ++ 3 files changed, 65 insertions(+), 57 deletions(-) diff --git a/.gitignore b/.gitignore index 1d17dae..c513c79 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,3 @@ .venv +/factures/commun/*.html.jinja2 +/factures/commun/*.pdf \ No newline at end of file diff --git a/factures/commun/_layout.jinja2 b/factures/commun/_layout.jinja2 index 3be22dd..f9c3eaf 100644 --- a/factures/commun/_layout.jinja2 +++ b/factures/commun/_layout.jinja2 @@ -23,64 +23,66 @@ -
-
Date
-
{{ date }}
-
N° de facture
-
{{ number }}
-
- - - {% for designation, price, quantity in lines %} - {% if loop.first %} - - - - - - - - {% set total = 0 %} - {% endif %} - - - - - - - - {% set total = total + quantity * price %} - - {% if loop.last %} - - - - - - {% endif %} - {% endfor %} -
DésignationPrix unitaireQuantitéTotal
{{ designation }}{{ price }} €{{ quantity }}{{ quantity * price }} €
Total T.T.C. à payer{{ total }} €
- - + + + {% for designation, price, quantity in lines %} + {% if loop.first %} + + + + + + + + {% set total = 0 %} + {% endif %} + + + + + + + + {% set total = total + quantity * price %} + + {% if loop.last %} + + + + + + {% endif %} + {% endfor %} +
DésignationPrix unitaireQuantitéTotal
{{ designation }}{{ price }} €{{ quantity }}{{ quantity * price }} €
Total T.T.C. à payer{{ total }} €
+ + + {% endblock content %} diff --git a/factures/commun/style.css b/factures/commun/style.css index e4c5bb9..4844974 100644 --- a/factures/commun/style.css +++ b/factures/commun/style.css @@ -113,3 +113,7 @@ dd::after { p { margin: 0.5em 0; } + +p.right-aligned { + margin: 2em 0 2em 60%; +}