feat: better template

This commit is contained in:
u80864958
2025-08-22 12:04:21 +02:00
parent 2e279c9b13
commit 11e7b6445c
4 changed files with 152 additions and 189 deletions

View File

@@ -12,73 +12,84 @@
<body>
<header>
<div class="company">
<h2>.CompanyName <h2>
<p>.CompanyAddress <p>
<p>.CompanyContact <p>
<h2>.CompanyName</h2>
<p>
.CompanyAddress <br />
.CompanyContact
</p>
<p></p>
</div>
<div class="invoice-info">
<p><strong>Rechnung:</strong> .InvoiceNumber </p>
<p><strong>Datum:</strong> .Date </p>
<p><strong>Fällig am:</strong> .DueDate </p>
<p>
<strong>Rechnung:</strong> .InvoiceNumber <br />
<strong>Datum:</strong> .Date <br />
<strong>Fällig am:</strong> .DueDate
</p>
</div>
</header>
<section class="client">
<h2>Rechnung an:</h2>
<p> .ClientName </p>
<p> .ClientAddress </p>
<p> .ClientContact </p>
<p>
.ClientName <br />
.ClientAddress <br />
.ClientContact
</p>
</section>
<table>
<thead>
<tr>
<th>FID</th>
<th>Name</th>
<th>Zeitaufwand</th>
<th>Stundensatz</th>
<th>Preis CHF</th>
<th>Fertiggestellt</th>
</tr>
</thead>
<tbody>
{{ range .Issues }}
<tr>
<td>{{ .Index }}</td>
<td>{{ .Title }}</td>
<td>{{ .Duration | duration }}</td>
<td>16 CHF/h</td>
<td>{{ .Duration | price }} CHF</td>
<td>{{ .Closed | time }}</td>
</tr>
{{ end }}
</tbody>
</table>
<div class="totals">
<section>
<table>
<tr>
<td>Gesamtbetrag:</td>
<td>{{ .Total }} CHF</td>
</tr>
<thead>
<tr>
<th>FID</th>
<th>Name</th>
<th>Zeitaufwand</th>
<th>Stundensatz</th>
<th>Preis CHF</th>
<th>Fertiggestellt</th>
</tr>
</thead>
<tbody>
{{ range .Issues }}
<tr>
<td>{{ .Index }}</td>
<td>{{ .Title }}</td>
<td>{{ .Duration | duration }}</td>
<td>16 CHF/h</td>
<td>{{ .Duration | price }} CHF</td>
<td>{{ .Closed | time }}</td>
</tr>
{{ end }}
</tbody>
</table>
</div>
<section>
<div class="totals">
<table>
<tr>
<td>Gesamtbetrag:</td>
<td>{{ .Total }} CHF</td>
</tr>
</table>
</div>
</section>
<hr />
<section>
<h2>Details zu den Features</h2>
<h2>Details zu den Features</h2>
{{ range .Issues }}
<article>
<h3>{{ .Index }}: {{ .Title }}</h3>
{{ .Body | md | oh 3 }}
</article>
{{ end }}
</section>
<footer>
<p>Bitte überweisen Sie den Gesamtbetrag bis zum Fälligkeitsdatum auf folgendes Konto:</p>
<p> .BankDetails </p>
{{ range .Issues }}
<article>
<h3>{{ .Index }}: {{ .Title }}</h3>
{{ .Body | md | oh 3 }}
</article>
{{ end }}
</section>
<footer>
<p>
Bitte überweisen Sie den Gesamtbetrag bis zum Fälligkeitsdatum auf
folgendes Konto:
</p>
<p>.BankDetails</p>
<p>Vielen Dank für Ihr Vertrauen!</p>
</footer>
</body>