Files
.gitea
assets
content
data
i18n
layouts
static
admin
config
collections
abiturienten.js
cantorfora.js
cantorpreis.js
chronikjahre.js
chronikseiten.js
index.js
settings-collection.js
statistik.js
superhaufen.js
widgets.js
index.js
props.js
schulchronik.js
links
previews
shortcodes
config.yml
icons.js
index.html
data
schulchronik
static
favicon.ico
.gitignore
LICENSE
config.yml
gcg-website/static/admin/config/collections/statistik.js

78 lines
2.8 KiB
JavaScript
Raw Normal View History

2023-05-11 15:16:14 +02:00
const StatistikCollection = {
name: "statistik",
label: "Statistik",
description: "Hier können statistische Daten bearbeitet werden. Dieser Bereich wird von der Schulchronik verwaltet.",
icon: "stats",
editor: {
preview: false
},
files: [
{
name: "abiturdurchschnitte",
label: "Abiturdurchschnitte",
file: "static/data/abiturdurchschnitte.json",
fields: [
{
name: "abiturdurchschnitte",
label: "Abiturdurchschnitte",
label_singular: "Abiturdurchschnitt",
widget: "list",
required: false,
fields: [
{
name: "jahr",
label: "Jahr",
widget: "number",
value_type: "int",
step: 1,
required: true
},
{
name: "schnitt",
label: "Schnitt",
widget: "number",
value_type: "float",
step: 0.01,
required: true
}
]
},
{
name: "schuelerzahlen",
label: "Schülerzahlen",
file: "static/data/schuelerzahlen.json",
fields: [
{
name: "schuelerzahlen",
label: "Schülerzahlen",
widget: "list",
required: false,
fields: [
{
name: "year",
label: "Jahr",
widget: "number",
required: true
},
{
name: "all",
label: "Gesamt",
widget: "number",
required: true
},
{
name: "girls",
label: "davon Mädchen",
widget: "number",
required: true
}
]
}
]
}
]
}
]
}
export default StatistikCollection;