mirror of
https://github.com/getformwork/formwork.git
synced 2025-01-17 13:38:22 +01:00
45 lines
956 B
YAML
45 lines
956 B
YAML
title: '{{panel.pages.newPage}}'
|
|
|
|
action: /pages/new/
|
|
|
|
fields:
|
|
title:
|
|
type: text
|
|
label: '{{page.title}}'
|
|
required: true
|
|
|
|
slug:
|
|
type: slug
|
|
label: '{{page.slug}}'
|
|
suggestion: '{{page.slug.suggestion}}'
|
|
required: true
|
|
pattern: '^[a-z0-9\-]+$'
|
|
source: title
|
|
root: parent
|
|
|
|
parent:
|
|
type: page
|
|
label: '{{page.parent}}'
|
|
collection@: site.descendants.allowingChildren
|
|
required: true
|
|
allowSite: true
|
|
|
|
template:
|
|
type: template
|
|
label: '{{page.template}}'
|
|
required: true
|
|
default@: site.get('defaultTemplate', 'default')
|
|
|
|
buttons:
|
|
dismiss:
|
|
action: dismiss
|
|
icon: times-circle
|
|
label: '{{panel.modal.action.cancel}}'
|
|
variant: secondary
|
|
|
|
submit:
|
|
action: submit
|
|
icon: check-circle
|
|
label: '{{panel.modal.action.continue}}'
|
|
align: right
|