Added flex page permissions to the blueprints (for admin)

This commit is contained in:
Matias Griese
2020-01-08 15:37:30 +02:00
parent 02b8499b0c
commit 464e1fc6c7
2 changed files with 66 additions and 5 deletions

View File

@@ -17,7 +17,7 @@ config:
route: '/accounts'
title: PLUGIN_ADMIN.USER_ACCOUNTS
icon: fa-user
authorize: ['admin.users', 'admin.accounts', 'admin.super']
authorize: ['admin.users', 'admin.accounts']
priority: 6
# Admin template type (folder)

View File

@@ -1,6 +1,67 @@
form:
fields:
permissions:
type: text
label: PLUGIN_ADMIN.PERMISSIONS
placeholder: Placeholder... Coming soon..
_site:
type: section
title: PLUGIN_ADMIN.SITE
underline: true
fields:
header.visibility_requires_access:
type: toggle
toggleable: true
label: PLUGIN_ADMIN.PAGE_VISIBILITY_REQUIRES_ACCESS
help: PLUGIN_ADMIN.PAGE_VISIBILITY_REQUIRES_ACCESS_HELP
highlight: 0
options:
1: PLUGIN_ADMIN.YES
0: PLUGIN_ADMIN.NO
validate:
type: bool
header.access:
type: permissions
toggleable: true
label: PLUGIN_ADMIN.PAGE_ACCESS
help: PLUGIN_ADMIN.PAGE_ACCESS_HELP
ignore_empty: true
validate:
type: array
value_type: bool
_admin:
type: section
title: PLUGIN_ADMIN.ADMIN
underline: true
fields:
header.permissions.inherit:
type: toggle
toggleable: true
label: PLUGIN_ADMIN.PAGE_INHERIT_PERMISSIONS
help: PLUGIN_ADMIN.PAGE_INHERIT_PERMISSIONS_HELP
highlight: 1
options:
1: PLUGIN_ADMIN.YES
0: PLUGIN_ADMIN.NO
validate:
type: bool
header.permissions.authors:
type: list
toggleable: true
label: PLUGIN_ADMIN.PAGE_AUTHORS
help: PLUGIN_ADMIN.PAGE_AUTHORS_HELP
fields:
value:
type: text
placeholder: PLUGIN_ADMIN.USERNAME
style: vertical
header.permissions.groups:
type: array
toggleable: true
label: PLUGIN_ADMIN.PAGE_GROUPS
help: PLUGIN_ADMIN.PAGE_GROUPS_HELP