mirror of
https://github.com/pierre42100/comunic
synced 2024-11-17 02:51:13 +00:00
36 lines
704 B
YAML
36 lines
704 B
YAML
rules:
|
|
slug:
|
|
pattern: "[a-z][a-z0-9_\-]+"
|
|
min: 2
|
|
max: 80
|
|
|
|
form:
|
|
validation: loose
|
|
fields:
|
|
|
|
section:
|
|
type: section
|
|
title: PLUGIN_ADMIN.ADD_FOLDER
|
|
|
|
folder:
|
|
type: text
|
|
label: PLUGIN_ADMIN.FOLDER_NAME
|
|
help: PLUGIN_ADMIN.FOLDER_NAME_HELP
|
|
validate:
|
|
type: slug
|
|
required: true
|
|
|
|
route:
|
|
type: select
|
|
label: PLUGIN_ADMIN.PARENT_PAGE
|
|
classes: fancy
|
|
data-options@: '\Grav\Common\Page\Pages::parentsRawRoutes'
|
|
data-default@: '\Grav\Plugin\admin::getLastPageRoute'
|
|
options:
|
|
'/': PLUGIN_ADMIN.DEFAULT_OPTION_ROOT
|
|
validate:
|
|
required: true
|
|
|
|
blueprint:
|
|
type: blueprint
|