feat: dirty add of the 'type' key (estimate/bill)

This commit is contained in:
Matthieu Bessat 2022-05-18 11:57:44 +02:00
commit 50f05325ed
2 changed files with 12 additions and 2 deletions

View file

@ -2,14 +2,22 @@
<html>
<head>
<meta charset="UTF-8">
<title>Facture</title>
<title>
{% if (type is not defined) or type == 'bill' %}Facture{% endif %}
{% if type == 'estimate' %}Devis{% endif %}
</title>
<style>
{% include('./styles/main.css') %}
</style>
</head>
<body>
<div class="container">
{% if type == 'estimate' %}
<h2>Devis n°{{ id }}</h2>
{% endif %}
{% if (type is not defined) or type == 'bill' %}
<h2>Facture n°{{ id }}</h2>
{% endif %}
<div class="header">
<ul class="header-column provider">
<li>Au nom et pour le compte de :</li>
@ -101,10 +109,12 @@
</table>
</div>
<div class="footer">
{% if (type is not defined) or type == 'bill' %}
<div>Coordonnées bancaires :</div>
<div class="banking">
<div>IBAN : FR76 1142 5009 0004 2337 9133 213</div> <div>BIC/SWIFT : CEPAFRPP</div>
</div>
{% endif %}
</div>
</div>
</body>