Files
stiftung-management-system/app/templates/berichte/sektionen/destinataere_uebersicht.html
SysAdmin Agent faeb7c1073
Some checks failed
CI/CD Pipeline / test (push) Has been cancelled
CI/CD Pipeline / deploy (push) Has been cancelled
Code Quality / quality (push) Has been cancelled
Implement modular report system with 6 report types and composer UI
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>
2026-03-14 20:55:31 +00:00

47 lines
1.4 KiB
HTML

<!-- Sektion: Destinat&auml;r-&Uuml;bersicht -->
<div class="section">
<h2>Destinat&auml;r-&Uuml;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&auml;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">&#8364;{{ destinataere_total_unterstuetzung|floatformat:2 }}</div>
<div class="label">Gesamte Unterst&uuml;tzungen</div>
</div>
</div>
{% if destinataere_liste %}
<table>
<thead>
<tr>
<th>Name</th>
<th>Ort</th>
<th>Berufsgruppe</th>
<th>Aktiv</th>
<th>Unterst&uuml;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">&#8364;{{ d.unterstuetzung_summe|floatformat:2 }}</td>
</tr>
{% endfor %}
</tbody>
</table>
{% endif %}
</div>