.gitea
assets
content
data
i18n
layouts
static
admin
config
collections
abiturienten.js
author.js
begabte.js
blog.js
cantorfora.js
cantorpreis.js
chronikjahre.js
chronikseiten.js
forms.js
ganztag.js
index-pages.js
index.js
pages.js
projektwoche.js
settings-collection.js
stats.js
superhaufen.js
wettbewerbe.js
widgets.js
index.js
props.js
schulchronik.js
links
previews
shortcodes
icons.js
index.html
data
media
schulchronik
favicon.ico
.gitignore
.mailmap
LICENSE
config.yml
84 lines
2.0 KiB
JavaScript
84 lines
2.0 KiB
JavaScript
const StatsCollection = {
|
|
name: "statistik",
|
|
label: "Statistik",
|
|
description:
|
|
"Hier können statistische Daten bearbeitet werden. Dieser Bereich wird von der Schulchronik verwaltet.",
|
|
icon: "stats",
|
|
editor: {
|
|
preview: false,
|
|
size: "half",
|
|
},
|
|
files: [
|
|
{
|
|
name: "abiturdurchschnitte",
|
|
label: "Abiturdurchschnitte",
|
|
file: "static/data/abiturdurchschnitte.json",
|
|
fields: [
|
|
{
|
|
name: "abiturdurchschnitte",
|
|
label: "Abiturdurchschnitte",
|
|
label_singular: "Jahr",
|
|
widget: "list",
|
|
required: false,
|
|
fields: [
|
|
{
|
|
name: "jahr",
|
|
label: "Jahr",
|
|
widget: "number",
|
|
value_type: "int",
|
|
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",
|
|
label_singular: "Jahr",
|
|
widget: "list",
|
|
required: false,
|
|
fields: [
|
|
{
|
|
name: "year",
|
|
label: "Jahr",
|
|
widget: "number",
|
|
value_type: "int",
|
|
required: true,
|
|
},
|
|
{
|
|
name: "all",
|
|
label: "Gesamtzahl",
|
|
widget: "number",
|
|
value_type: "int",
|
|
required: true,
|
|
},
|
|
{
|
|
name: "girls",
|
|
label: "davon Mädchen",
|
|
widget: "number",
|
|
value_type: "int",
|
|
required: true,
|
|
},
|
|
],
|
|
},
|
|
],
|
|
},
|
|
],
|
|
};
|
|
|
|
export default StatsCollection;
|