{% extends "base.html" %}
{% block title %}{{ titel }}{% endblock %}
{% block page_title %}{{ titel }}{% endblock %}
{% block loader_text %}Bezig met tellen via Informat API...{% endblock %}
{% block content %}
{# ---------- Telling op peildatum ---------- #}
๐
Telling op peildatum
{% if peildata %}
โฌ๏ธ CSV alle peildata
{% endif %}
{% if peildata %}
{% endif %}
{% if telling %}
{{ eenheid }} op {{ peildatum.strftime('%d-%m-%Y') }}
| School |
{{ eenheid }} |
Opgevraagd |
Actie |
{% for g in telling_groepen %}
| {{ g.label }} |
{% for row in g.rijen %}
| {{ row.Naam_school }} |
{{ row.Aantal if row.Aantal is not none else 'โ' }} |
{% if row.Opgevraagd_op %}{{ row.Opgevraagd_op.strftime('%d-%m-%Y %H:%M') }}{% if row.Door %} ยท {{ row.Door }}{% endif %}{% else %}Niet geteld{% endif %} |
{% if row.Informat %}
{% else %}
Informat niet ingesteld
{% endif %}
|
{% for c in row.Campussen %}
| โณ {{ c.naam }} |
{{ c.aantal }} |
|
{% endfor %}
{% endfor %}
{% if g.code %}
| Subtotaal {{ g.label|lower }} | {{ g.subtotaal }} | |
{% endif %}
{% endfor %}
| Totaal scholengroep | {{ telling_totaal }} | |
{% endif %}
{# ---------- Huidig aantal ---------- #}
๐ข Scholengroep: huidig aantal
| School |
{{ eenheid }} |
Laatste synchronisatie |
Actie |
{% for g in groepen %}
| {{ g.label }} |
{% for row in g.rijen %}
| {{ row['Naam_school'] }} |
{{ row['Huidig'] }} |
{{ row['Laatste_synchronisatie'] or 'Nog nooit' }} |
{% if row['Informat'] %}
{% else %}
Informat niet ingesteld
{% endif %}
|
{% for c in row['Campussen'] %}
| โณ {{ c.naam }} |
{{ c.aantal }} |
|
{% endfor %}
{% endfor %}
{% if g.code %}
| Subtotaal {{ g.label|lower }} | {{ g.subtotaal }} | |
{% endif %}
{% else %}
| Geen scholen gevonden. |
{% endfor %}
{% if results %}
| Totaal scholengroep | {{ totaal }} | |
{% endif %}
{% endblock %}