gcg-website/static/admin/config/collections/abiturienten.js
Denys Konovalov 25af663be4
All checks were successful
website-main / prod-build (push) Successful in 13s
website-main / test-build (push) Successful in 5s
Static CMS v4 (#252)
Reviewed-on: #252
2023-12-13 12:42:59 +01:00

50 lines
1.1 KiB
JavaScript

import { EditorProps, MarkdownProps, ImageProps } from "../props.js";
import { DraftBoolean, Title } from "./widgets.js";
const AbiturientenCollection = {
name: "abiturienten",
label: "Abiturienten",
label_singular: "Abiturjahrgang",
description:
"Hier kann die Übersicht der Abiturjahrgänge bearbeitet werden. Dieser Bereich wird von der Schulchronik verwaltet.",
icon: "graduation-cap",
folder: "content/abiturienten",
filter: {
field: "type",
value: "abiturienten",
},
...EditorProps,
summary_fields: ["title", "draft"],
sortable_fields: {
fields: ["title"],
default: {
field: "title",
direction: "Descending",
},
},
fields: [
Title(false),
DraftBoolean,
{
name: "image",
label: "Bild",
default: "/media/image.webp",
...ImageProps,
},
{
name: "type",
label: "Typ",
widget: "hidden",
default: "abiturienten",
},
{
name: "body",
label: "Text",
required: false,
...MarkdownProps,
},
],
};
export default AbiturientenCollection;