gcg-website/static/admin/config/collections/widgets.js

30 lines
560 B
JavaScript
Raw Permalink Normal View History

2023-05-11 06:44:30 +02:00
const EnableBoolean = {
name: "enable",
label: "Aktivieren",
widget: "boolean",
required: false
};
const DraftBoolean = {
name: "draft",
label: "Entwurf",
widget: "boolean",
default: false,
required: false
}
const Title = (optional = false) => ({
name: "title",
label: "Titel",
widget: "string",
required: !optional
});
const DescriptionText = {
name: "description",
label: "Beschreibung",
widget: "text",
required: false
};
export { EnableBoolean, DraftBoolean, Title, DescriptionText };