74 lines
1.5 KiB
JavaScript
74 lines
1.5 KiB
JavaScript
import { MarkdownProps } from "../props.js";
|
|
import { DescriptionText, DraftBoolean, Title } from "./widgets.js";
|
|
|
|
const CantorforaCollection = {
|
|
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",
|
|
folder: "content/cantorfora",
|
|
filter: {
|
|
field: "type",
|
|
value: "cantorfora",
|
|
},
|
|
create: true,
|
|
editor: {
|
|
preview: true,
|
|
frame: true,
|
|
size: "half",
|
|
},
|
|
view_groups: [
|
|
{
|
|
label: "Entwürfe",
|
|
field: "draft",
|
|
},
|
|
],
|
|
summary_fields: ["title", "draft", "description"],
|
|
sortable_fields: {
|
|
fields: ["index", "title"],
|
|
default: {
|
|
field: "index",
|
|
direction: "Descending",
|
|
},
|
|
},
|
|
fields: [
|
|
Title(false),
|
|
{
|
|
name: "index",
|
|
label: "Laufindex",
|
|
hint: "Nummer des Cantorforums",
|
|
widget: "number",
|
|
value_type: "int",
|
|
min: 1,
|
|
step: 1,
|
|
required: true,
|
|
},
|
|
DraftBoolean,
|
|
DescriptionText,
|
|
{
|
|
name: "image",
|
|
label: "Titelbild",
|
|
widget: "image",
|
|
default: "/media/image.webp",
|
|
required: true,
|
|
},
|
|
{
|
|
name: "type",
|
|
label: "Typ",
|
|
widget: "hidden",
|
|
default: "cantorfora",
|
|
},
|
|
{
|
|
name: "body",
|
|
label: "Text",
|
|
widget: "markdown",
|
|
required: true,
|
|
...MarkdownProps,
|
|
},
|
|
],
|
|
};
|
|
|
|
export default CantorforaCollection;
|