2023-05-29 16:22:34 +02:00
|
|
|
import { MarkdownProps } from "../props.js";
|
|
|
|
import { DescriptionText, DraftBoolean, IconList, Title } from "./widgets.js";
|
|
|
|
|
|
|
|
const ProjektwocheCollection = {
|
|
|
|
name: "projektwoche",
|
|
|
|
label: "Projektwochen",
|
|
|
|
label_singular: "Projektwoche",
|
|
|
|
description: "Hier kann die Übersicht der Projektwochen bearbeitet werden.",
|
|
|
|
icon: "projektwoche",
|
2023-06-21 17:58:49 +02:00
|
|
|
folder: "content/projektwoche",
|
2023-05-29 16:22:34 +02:00
|
|
|
filter: {
|
|
|
|
field: "type",
|
|
|
|
value: "projektwoche",
|
|
|
|
},
|
|
|
|
create: true,
|
|
|
|
editor: {
|
|
|
|
preview: true,
|
|
|
|
frame: true,
|
|
|
|
size: "half",
|
|
|
|
},
|
|
|
|
summary_fields: ["title", "draft", "tiles", "description"],
|
|
|
|
fields: [
|
|
|
|
Title(false),
|
|
|
|
DraftBoolean,
|
|
|
|
DescriptionText,
|
|
|
|
{
|
|
|
|
name: "type",
|
|
|
|
label: "Typ",
|
|
|
|
widget: "hidden",
|
|
|
|
default: "projektwoche",
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "body",
|
|
|
|
label: "Inhalt",
|
2023-12-12 17:13:58 +01:00
|
|
|
widget: "markdown",
|
2023-05-29 16:22:34 +02:00
|
|
|
required: false,
|
|
|
|
...MarkdownProps,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "tiles",
|
|
|
|
label: "Kacheln",
|
|
|
|
hint: "Die Vorschau zeigt nur die generierten Symbolkarten, NICHT die Inhalte.",
|
|
|
|
widget: "list",
|
|
|
|
required: false,
|
|
|
|
collapsed: true,
|
|
|
|
fields: [
|
|
|
|
Title(false),
|
|
|
|
{
|
|
|
|
name: "bg_color",
|
|
|
|
label: "Hintergrundfarbe",
|
|
|
|
widget: "color",
|
|
|
|
required: true,
|
|
|
|
},
|
|
|
|
IconList,
|
|
|
|
{
|
|
|
|
name: "font_color",
|
|
|
|
label: "Symbolfarbe",
|
|
|
|
widget: "color",
|
|
|
|
required: true,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "content",
|
|
|
|
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 ProjektwocheCollection;
|