Refactors the Berichte section from a single hardcoded Jahresbericht into a modular report-building system. Jahresbericht now uses PDFGenerator for corporate identity (logo, colors, headers/footers, cover page). 8 reusable section templates can be freely combined. 6 predefined report templates (Jahres-, Destinatär-, Grundstücks-, Finanz-, Förder-, Pachtbericht) with HTML preview and PDF export. New Bericht-Baukasten UI lets users compose custom reports from individual sections. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
42 lines
1.3 KiB
HTML
42 lines
1.3 KiB
HTML
<!-- Sektion: Unterstützungszahlungen -->
|
|
{% if unterstuetzungen %}
|
|
<div class="section">
|
|
<h2>Unterstützungszahlungen {{ jahr }}</h2>
|
|
<p style="color: #666; margin-bottom: 12px;">
|
|
{{ unterstuetzungen.count }} Unterstützung(en) geplant/ausgezahlt ·
|
|
{{ unterstuetzungen_ausgezahlt.count }} überwiesen (€{{ total_unterstuetzungen|floatformat:2 }})
|
|
</p>
|
|
<table>
|
|
<thead>
|
|
<tr>
|
|
<th>Destinatär</th>
|
|
<th>Betrag</th>
|
|
<th>Fällig am</th>
|
|
<th>Status</th>
|
|
<th>Verwendungszweck</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for u in unterstuetzungen %}
|
|
<tr>
|
|
<td>{{ u.destinataer.get_full_name }}</td>
|
|
<td class="amount">€{{ u.betrag|floatformat:2 }}</td>
|
|
<td>{{ u.faellig_am|date:"d.m.Y" }}</td>
|
|
<td>
|
|
<span class="status-badge status-{{ u.status }}">{{ u.get_status_display }}</span>
|
|
</td>
|
|
<td>{{ u.beschreibung|default:"-" }}</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
<tfoot>
|
|
<tr style="font-weight: bold; background: #f0f7f4;">
|
|
<td>Summe ausgezahlt</td>
|
|
<td class="amount">€{{ total_unterstuetzungen|floatformat:2 }}</td>
|
|
<td colspan="3"></td>
|
|
</tr>
|
|
</tfoot>
|
|
</table>
|
|
</div>
|
|
{% endif %}
|