Work around page breaking issue

This commit is contained in:
2023-08-12 22:53:28 +02:00
parent 0ea77656e3
commit 244de52b19
3 changed files with 50 additions and 14 deletions

View File

@ -5,6 +5,13 @@
<div class="date">@Model.Location, am @($"{Model.Date:dd.MM.yyyy}")</div>
<h1>@Model.Title</h1>
@if (Model.Delivery.Parts.Count > 2) {
<p>Siehe nächste Seite.</p>
if (Model.Delivery.Year == Model.CurrentNextSeason) {
<p>Gesamtlieferung usw.</p>
}
<hr class="page-break"/>
}
<table class="delivery">
<colgroup>
<col style="width: 1cm;"/>
@ -57,6 +64,9 @@
@if (Model.Delivery.Comment != null) {
<p class="comment">Amerkung zur Lieferung: @Model.Delivery.Comment</p>
}
@if (Model.Delivery.Parts.Count <= 2 && Model.Delivery.Year == Model.CurrentNextSeason) {
<p>Gesamtlieferung usw.</p>
}
@for (int i = 0; i < 2; i++) {
<div class="@(i == 0 ? "bottom" : "hidden")">
@if (Model.Text != null) {