From d7dff3e49405de6f36b0eddd9817faeb1718eb40 Mon Sep 17 00:00:00 2001 From: Denys Konovalov Date: Wed, 1 Mar 2023 14:06:18 +0100 Subject: [PATCH] cms stats --- static/schulchronik/admin/config.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/static/schulchronik/admin/config.yml b/static/schulchronik/admin/config.yml index 0cd261e4..d7217de7 100644 --- a/static/schulchronik/admin/config.yml +++ b/static/schulchronik/admin/config.yml @@ -105,6 +105,19 @@ collections: fields: - {label: "Jahr", name: "jahr", widget: "number", required: true} - {label: "Schnitt", name: "schnitt", widget: "number", value_type: "float", step: 0.01, required: true} + - name: "schuelerzahlen" + label: "Schülerzahlen" + file: "static/data/schuelerzahlen.json" + fields: + - label: "Schülerzahlen" + label_singular: "Schülerzahlen" + name: "schuelerzahlen" + widget: "list" + required: false + fields: + - {label: "Jahr", name: "year", widget: "number", required: true} + - {label: "Gesamt", name: "all", widget: "number", required: true} + - {label: "davon Mädchen", name: "girls", widget: "number", required: true} - name: "cantorpreis" icon: "award" label: "Cantor-Preisträger"