Files
directus/api/src/database/system-data/fields/roles.yaml
2021-08-23 21:19:51 +00:00

142 lines
3.8 KiB
YAML

table: directus_roles
fields:
- field: id
hidden: true
interface: input
special: uuid
- field: name
interface: input
options:
placeholder: $t:field_options.directus_roles.name
width: half
- field: icon
interface: select-icon
display: icon
width: half
- field: description
interface: input
options:
placeholder: $t:field_options.directus_roles.description
width: full
- field: app_access
interface: boolean
special: boolean
width: half
- field: admin_access
interface: boolean
special: boolean
width: half
- field: ip_access
interface: tags
options:
placeholder: $t:field_options.directus_roles.ip_access
special: csv
width: full
- field: enforce_tfa
interface: boolean
special: boolean
width: half
- field: users
interface: list-o2m
special: o2m
options:
fields:
- first_name
- last_name
width: full
- field: module_list
interface: list
options:
template: '{{ name }}'
addLabel: Add New Module...
fields:
- name: $t:field_options.directus_roles.fields.icon_name
field: icon
type: string
meta:
interface: select-icon
width: half
- name: $t:field_options.directus_roles.fields.name_name
field: name
type: string
meta:
interface: input
width: half
options:
iconRight: title
placeholder:
- name: $t:field_options.directus_roles.fields.link_name
field: link
type: string
meta:
interface: input
width: full
options:
iconRight: link
placeholder: $t:field_options.directus_roles.fields.link_placeholder
special: json
width: full
- field: collection_list
interface: list
options:
template: '{{ group_name }}'
addLabel: $t:field_options.directus_roles.collection_list.group_name_addLabel
fields:
- name: $t:field_options.directus_roles.collection_list.fields.group_name
field: group_name
type: string
meta:
width: half
interface: input
options:
iconRight: title
placeholder: $t:field_options.directus_roles.collection_list.fields.group_placeholder
schema:
is_nullable: false
- name: $t:field_options.directus_roles.collection_list.fields.type_name
field: accordion
type: string
schema:
default_value: always_open
meta:
width: half
interface: select-dropdown
options:
choices:
- value: always_open
text: $t:field_options.directus_roles.collection_list.fields.choices_always
- value: start_open
text: $t:field_options.directus_roles.collection_list.fields.choices_start_open
- value: start_collapsed
text: $t:field_options.directus_roles.collection_list.fields.choices_start_collapsed
- name: $t:field_options.directus_roles.collections_name
field: collections
type: JSON
meta:
interface: list
options:
addLabel: $t:field_options.directus_roles.collections_addLabel
template: '{{ collection }}'
fields:
- name: $t:field_options.directus_roles.collections_name
field: collection
type: string
meta:
interface: system-collection
width: full
schema:
is_nullable: false
special: json
width: full