2023-12-12 17:13:58 +01:00
|
|
|
import { MarkdownProps } from "../props.js";
|
2023-05-11 06:44:30 +02:00
|
|
|
import { DraftBoolean, Title } from "./widgets.js";
|
|
|
|
|
|
|
|
const AbiturientenCollection = {
|
2023-05-29 16:22:34 +02:00
|
|
|
name: "abiturienten",
|
|
|
|
label: "Abiturienten",
|
|
|
|
label_singular: "Abiturjahrgang",
|
|
|
|
description:
|
|
|
|
"Hier kann die Übersicht der Abiturjahrgänge bearbeitet werden. Dieser Bereich wird von der Schulchronik verwaltet.",
|
|
|
|
icon: "graduation-cap",
|
2023-06-21 17:58:49 +02:00
|
|
|
folder: "content/abiturienten",
|
2023-05-29 16:22:34 +02:00
|
|
|
filter: {
|
|
|
|
field: "type",
|
|
|
|
value: "abiturienten",
|
|
|
|
},
|
|
|
|
create: true,
|
|
|
|
editor: {
|
|
|
|
preview: true,
|
|
|
|
frame: true,
|
|
|
|
size: "half",
|
|
|
|
},
|
|
|
|
summary_fields: ["title", "draft"],
|
|
|
|
sortable_fields: {
|
|
|
|
fields: ["title"],
|
|
|
|
default: {
|
|
|
|
field: "title",
|
|
|
|
direction: "Descending",
|
2023-05-11 06:44:30 +02:00
|
|
|
},
|
2023-05-29 16:22:34 +02:00
|
|
|
},
|
|
|
|
fields: [
|
|
|
|
Title(false),
|
|
|
|
DraftBoolean,
|
|
|
|
{
|
|
|
|
name: "image",
|
|
|
|
label: "Bild",
|
2023-12-12 17:13:58 +01:00
|
|
|
widget: "image",
|
2023-05-29 16:22:34 +02:00
|
|
|
default: "/media/image.webp",
|
2023-12-12 17:13:58 +01:00
|
|
|
required: false,
|
2023-05-11 06:44:30 +02:00
|
|
|
},
|
2023-05-29 16:22:34 +02:00
|
|
|
{
|
|
|
|
name: "type",
|
|
|
|
label: "Typ",
|
|
|
|
widget: "hidden",
|
|
|
|
default: "abiturienten",
|
2023-05-11 06:44:30 +02:00
|
|
|
},
|
2023-05-29 16:22:34 +02:00
|
|
|
{
|
|
|
|
name: "body",
|
|
|
|
label: "Text",
|
2023-12-12 17:13:58 +01:00
|
|
|
widget: "markdown",
|
2023-05-29 16:22:34 +02:00
|
|
|
required: false,
|
|
|
|
...MarkdownProps,
|
|
|
|
},
|
|
|
|
],
|
2023-05-11 06:44:30 +02:00
|
|
|
};
|
|
|
|
|
2023-05-29 16:22:34 +02:00
|
|
|
export default AbiturientenCollection;
|