2023-12-12 17:25:51 +01:00
|
|
|
import { MarkdownProps, ImageProps } from "../props.js";
|
2023-05-11 06:44:30 +02:00
|
|
|
import { DescriptionText, DraftBoolean, Title } from "./widgets.js";
|
|
|
|
|
|
|
|
const CantorforaCollection = {
|
2023-05-29 16:22:34 +02:00
|
|
|
name: "cantorfora",
|
|
|
|
label: "Cantorfora",
|
|
|
|
label_singular: "Cantorforum",
|
|
|
|
description:
|
|
|
|
"Hier kann die Übersicht der Cantorfora bearbeitet werden. Dieser Bereich wird von der Schulchronik verwaltet.",
|
|
|
|
icon: "presentation",
|
2023-06-21 17:58:49 +02:00
|
|
|
folder: "content/cantorfora",
|
2023-05-29 16:22:34 +02:00
|
|
|
filter: {
|
|
|
|
field: "type",
|
|
|
|
value: "cantorfora",
|
|
|
|
},
|
|
|
|
create: true,
|
|
|
|
editor: {
|
|
|
|
preview: true,
|
|
|
|
frame: true,
|
|
|
|
size: "half",
|
|
|
|
},
|
|
|
|
summary_fields: ["title", "draft", "description"],
|
|
|
|
sortable_fields: {
|
|
|
|
fields: ["index", "title"],
|
|
|
|
default: {
|
|
|
|
field: "index",
|
|
|
|
direction: "Descending",
|
2023-05-11 06:44:30 +02:00
|
|
|
},
|
2023-05-29 16:22:34 +02:00
|
|
|
},
|
|
|
|
fields: [
|
|
|
|
Title(false),
|
|
|
|
{
|
|
|
|
name: "index",
|
|
|
|
label: "Laufindex",
|
|
|
|
hint: "Nummer des Cantorforums",
|
|
|
|
widget: "number",
|
|
|
|
value_type: "int",
|
|
|
|
min: 1,
|
|
|
|
step: 1,
|
|
|
|
required: true,
|
2023-05-11 06:44:30 +02:00
|
|
|
},
|
2023-05-29 16:22:34 +02:00
|
|
|
DraftBoolean,
|
|
|
|
DescriptionText,
|
|
|
|
{
|
|
|
|
name: "image",
|
|
|
|
label: "Titelbild",
|
|
|
|
default: "/media/image.webp",
|
2023-12-12 17:25:51 +01:00
|
|
|
...ImageProps,
|
2023-05-29 16:22:34 +02:00
|
|
|
required: true,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "type",
|
|
|
|
label: "Typ",
|
|
|
|
widget: "hidden",
|
|
|
|
default: "cantorfora",
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "body",
|
|
|
|
label: "Text",
|
|
|
|
required: true,
|
|
|
|
...MarkdownProps,
|
|
|
|
},
|
|
|
|
],
|
2023-05-11 06:44:30 +02:00
|
|
|
};
|
|
|
|
|
2023-05-29 16:22:34 +02:00
|
|
|
export default CantorforaCollection;
|