Extract ReportHeader, ReportDivider, ReportSectionHeader, and
ReportFooter under Components/Pages/Reports/ and adopt them across
BalanceReport, BalanceSheetReport, ProfitLossReport, and DetailReport.
Row shapes are unchanged; the primitives just fold the divider hr
rows (30+ occurrences), section headers (8), and header/footer (4
each). ProfitLossReport / DetailReport also drop leftover
`m.Class == 3/4` magic numbers for ClassIds. Print CSS gains
`table.report tr { page-break-inside: avoid; }` so section headers
don't land at the bottom of a page alone. Net -88 lines across the
four report razor files.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
18 lines
457 B
Text
18 lines
457 B
Text
@* Section header + divider pair — "Aktiven", "Passiven", "Einkünfte",
|
|
"Ausgaben", "Einnahmen" etc. Wraps two <tr>s so the caller drops it
|
|
into <tbody> as a single element. *@
|
|
|
|
<tr>
|
|
<td colspan="@Colspan" class="header">@Title</td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="@Colspan"><hr/></td>
|
|
</tr>
|
|
|
|
@code {
|
|
[Parameter, EditorRequired]
|
|
public string Title { get; set; } = "";
|
|
|
|
[Parameter, EditorRequired]
|
|
public int Colspan { get; set; }
|
|
}
|