Skip to content

Commit

Permalink
Save some space to allow for longer data
Browse files Browse the repository at this point in the history
  • Loading branch information
jbtronics committed Oct 15, 2024
1 parent 533885a commit 7f196b5
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 7 deletions.
2 changes: 1 addition & 1 deletion templates/pdf/_base_styles.css.twig
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
--body-margin-left: 20mm;
--body-margin-right: 20mm;
--body-margin-top: 20mm;
--body-margin-bottom: 15mm;
--body-margin-bottom: 5mm;
}

@page {
Expand Down
8 changes: 7 additions & 1 deletion templates/pdf/_form_styles.css.twig
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
table.table-form {
width: 100%;
border: none;
line-height: 1.1;
}



table.table-form td:first-child {
font-weight: bold;
}
width: 50mm;
}

table tr.spacer td { height: 1em; }
2 changes: 1 addition & 1 deletion templates/pdf/payment_order/confirmations.macro.twig
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{% macro signature(left, bottom) %}
<div class="signature-area" style="margin-top: 25mm;">
<div class="signature-area" style="margin-top: 20mm;">
<span style="display: inline;">{{ left }}</span>
<div style="border-top: solid 0.2mm black; margin-left: 80mm;">{{ bottom }}</div>
</div>
Expand Down
8 changes: 4 additions & 4 deletions templates/pdf/payment_order/payment_order.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,14 @@
<td>{{ paymentOrder.department.name }}</td>
</tr>

<br>
<tr class="spacer"><td></td><td></td></tr>

<tr>
<td>Projektbezeichnung:</td>
<td>{{ paymentOrder.projectName }}</td>
</tr>

<br>
<tr class="spacer"><td></td><td></td></tr>

<tr>
<td>Mittelfreigabe / Finanzantrag:</td>
Expand All @@ -67,7 +67,7 @@
<td>{% if paymentOrder.supportingAmount %}{{ (paymentOrder.supportingAmount / 100) | format_currency("EUR") }}{% else %}-{% endif %}</td>
</tr>

<br>
<tr class="spacer"><td></td><td></td></tr>

<tr>
<td>Zahlungsempfänger*in:</td>
Expand All @@ -78,7 +78,7 @@
<td>{{ paymentOrder.bankInfo.address }}</td>
</tr>

<br>
<tr class="spacer"><td></td><td></td></tr>

<tr>
<td>IBAN:</td>
Expand Down

0 comments on commit 7f196b5

Please sign in to comment.