2023-12-12 17:13:58 +01:00
|
|
|
import { MarkdownProps } from "../props.js";
|
2023-05-11 06:44:30 +02:00
|
|
|
import { DescriptionText, DraftBoolean } from "./widgets.js";
|
|
|
|
|
|
|
|
const CantorpreisCollection = {
|
2023-05-29 16:22:34 +02:00
|
|
|
name: "cantorpreis",
|
|
|
|
label: "Cantorpreisträger",
|
|
|
|
description:
|
|
|
|
"Hier sind alle Cantorpreisträger aufgelistet. Dieser Bereich wird von der Schulchronik verwaltet.",
|
|
|
|
icon: "award",
|
2023-06-21 17:58:49 +02:00
|
|
|
folder: "content/cantorpreis",
|
2023-05-29 16:22:34 +02:00
|
|
|
filter: {
|
|
|
|
field: "type",
|
|
|
|
value: "cantorpreis",
|
|
|
|
},
|
|
|
|
sortable_fields: {
|
|
|
|
fields: ["title", "name"],
|
|
|
|
default: {
|
|
|
|
field: "title",
|
|
|
|
direction: "Descending",
|
2023-05-11 06:44:30 +02:00
|
|
|
},
|
2023-05-29 16:22:34 +02:00
|
|
|
},
|
|
|
|
summary: "{{title}} - {{name}}",
|
|
|
|
create: true,
|
|
|
|
editor: {
|
|
|
|
preview: true,
|
|
|
|
frame: true,
|
|
|
|
size: "half",
|
|
|
|
},
|
|
|
|
summary_fields: ["title", "name", "draft", "body"],
|
|
|
|
fields: [
|
|
|
|
{
|
|
|
|
name: "title",
|
|
|
|
label: "Jahr",
|
|
|
|
widget: "string",
|
|
|
|
required: true,
|
2023-05-11 06:44:30 +02:00
|
|
|
},
|
2023-05-29 16:22:34 +02:00
|
|
|
{
|
|
|
|
name: "name",
|
|
|
|
label: "Name",
|
|
|
|
widget: "string",
|
|
|
|
required: true,
|
2023-05-11 06:44:30 +02:00
|
|
|
},
|
2023-05-29 16:22:34 +02:00
|
|
|
DraftBoolean,
|
|
|
|
DescriptionText,
|
|
|
|
{
|
|
|
|
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-29 16:22:34 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "type",
|
|
|
|
label: "Typ",
|
|
|
|
widget: "hidden",
|
|
|
|
default: "cantorpreis",
|
|
|
|
},
|
|
|
|
{
|
|
|
|
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 CantorpreisCollection;
|