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>
47 lines
1.4 KiB
HTML
47 lines
1.4 KiB
HTML
<!-- Sektion: Destinatär-Übersicht -->
|
|
<div class="section">
|
|
<h2>Destinatär-Übersicht{% if jahr %} {{ jahr }}{% endif %}</h2>
|
|
|
|
<div class="stats-grid">
|
|
<div class="stat-card">
|
|
<div class="value">{{ destinataere_aktiv }}</div>
|
|
<div class="label">Aktive Destinatäre</div>
|
|
</div>
|
|
<div class="stat-card">
|
|
<div class="value">{{ destinataere_gesamt }}</div>
|
|
<div class="label">Gesamt</div>
|
|
</div>
|
|
<div class="stat-card">
|
|
<div class="value">€{{ destinataere_total_unterstuetzung|floatformat:2 }}</div>
|
|
<div class="label">Gesamte Unterstützungen</div>
|
|
</div>
|
|
</div>
|
|
|
|
{% if destinataere_liste %}
|
|
<table>
|
|
<thead>
|
|
<tr>
|
|
<th>Name</th>
|
|
<th>Ort</th>
|
|
<th>Berufsgruppe</th>
|
|
<th>Aktiv</th>
|
|
<th>Unterstützungen</th>
|
|
<th>Betrag gesamt</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for d in destinataere_liste %}
|
|
<tr>
|
|
<td>{{ d.get_full_name }}</td>
|
|
<td>{{ d.ort|default:"-" }}</td>
|
|
<td>{{ d.get_berufsgruppe_display|default:"-" }}</td>
|
|
<td>{% if d.aktiv %}Ja{% else %}Nein{% endif %}</td>
|
|
<td>{{ d.unterstuetzung_count }}</td>
|
|
<td class="amount">€{{ d.unterstuetzung_summe|floatformat:2 }}</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
{% endif %}
|
|
</div>
|