.gitea
assets
content
data
layouts
static
admin
config
collections
abiturienten.js
author.js
begabte.js
blog.js
cantorfora.js
cantorpreis.js
chronikjahre.js
chronikseiten.js
forms.js
ganztag.js
index-pages.js
index.js
pages.js
projektwoche.js
settings-collection.js
stats.js
superhaufen.js
wettbewerbe.js
widgets.js
index.js
props.js
schulchronik.js
themes.js
links
previews
shortcodes
icons.js
index.html
data
media
schulchronik
favicon.ico
.gitignore
.mailmap
LICENSE
config.yml
go.mod
go.sum
renovate.json
60 lines
1.2 KiB
JavaScript
60 lines
1.2 KiB
JavaScript
import { EditorProps, MarkdownProps } from "../props.js";
|
|
import { DescriptionText, DraftBoolean, Title } from "./widgets.js";
|
|
|
|
const FormsCollection = {
|
|
name: "forms",
|
|
label: "Dokumente",
|
|
label_singular: "Dokument",
|
|
description:
|
|
"Hier sind Formulare, Vorlagen und andere Dokumente zu hinterlegen.",
|
|
icon: "document",
|
|
folder: "content/forms",
|
|
...EditorProps,
|
|
filter: {
|
|
field: "type",
|
|
value: "forms",
|
|
},
|
|
summary_fields: ["title", "draft"],
|
|
fields: [
|
|
Title(false),
|
|
DraftBoolean,
|
|
DescriptionText,
|
|
{
|
|
name: "files",
|
|
label: "Dateien",
|
|
label_singular: "Datei",
|
|
widget: "list",
|
|
required: false,
|
|
collapsed: true,
|
|
fields: [
|
|
{
|
|
name: "title",
|
|
label: "Bezeichnung",
|
|
widget: "string",
|
|
required: true,
|
|
},
|
|
{
|
|
name: "link",
|
|
label: "Datei",
|
|
widget: "file",
|
|
required: true,
|
|
},
|
|
],
|
|
},
|
|
{
|
|
name: "type",
|
|
label: "Typ",
|
|
widget: "hidden",
|
|
default: "forms",
|
|
},
|
|
{
|
|
name: "body",
|
|
label: "Inhalt",
|
|
required: false,
|
|
...MarkdownProps,
|
|
},
|
|
],
|
|
};
|
|
|
|
export default FormsCollection;
|