2023-12-12 17:13:58 +01:00
|
|
|
import { MarkdownProps } from "../props.js";
|
2023-05-29 16:22:34 +02:00
|
|
|
import { DescriptionText, DraftBoolean, Title } from "./widgets.js";
|
|
|
|
|
|
|
|
const BegabteCollection = {
|
|
|
|
name: "begabte",
|
|
|
|
label: "Begabtenförderung",
|
|
|
|
label_singular: "Begabtenförderungsangebot",
|
|
|
|
description:
|
|
|
|
"Hier kann die Übersicht der Begabtenförderungsangebote bearbeitet werden.",
|
|
|
|
icon: "pi",
|
2023-06-21 17:58:49 +02:00
|
|
|
folder: "content/begabte",
|
2023-05-29 16:22:34 +02:00
|
|
|
create: true,
|
|
|
|
editor: {
|
|
|
|
preview: true,
|
|
|
|
frame: true,
|
|
|
|
size: "half",
|
|
|
|
},
|
|
|
|
filter: {
|
|
|
|
field: "type",
|
|
|
|
value: "begabte",
|
|
|
|
},
|
|
|
|
summary_fields: ["title", "draft", "body"],
|
|
|
|
fields: [
|
|
|
|
Title(false),
|
|
|
|
DraftBoolean,
|
|
|
|
DescriptionText,
|
|
|
|
{
|
|
|
|
name: "image",
|
|
|
|
label: "Titelbild",
|
2023-12-12 17:13:58 +01:00
|
|
|
widget: "image",
|
2023-12-11 20:07:24 +01:00
|
|
|
required: true,
|
2023-12-12 17:13:58 +01:00
|
|
|
default: "/media/image.webp",
|
2023-05-29 16:22:34 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "class",
|
|
|
|
label: "Klassenstufe(n)",
|
|
|
|
widget: "string",
|
|
|
|
required: true,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "web_url",
|
|
|
|
label: "Website",
|
|
|
|
widget: "string",
|
|
|
|
required: false,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "type",
|
|
|
|
label: "Typ",
|
|
|
|
widget: "hidden",
|
|
|
|
default: "begabte",
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "body",
|
|
|
|
label: "Inhalt",
|
2023-12-12 17:13:58 +01:00
|
|
|
widget: "markdown",
|
2023-05-29 16:22:34 +02:00
|
|
|
required: true,
|
|
|
|
...MarkdownProps,
|
|
|
|
},
|
|
|
|
],
|
|
|
|
};
|
|
|
|
|
|
|
|
export default BegabteCollection;
|