2021-01-05 14:40:09 +01:00

121 lines
4.1 KiB
YAML

title: User
fields:
rows1:
type: rows
fields:
row1:
type: row
fields:
column1:
type: column
width: 1-3
label: '{{admin.user.fullname}}'
column2:
type: column
width: 2-3
fields:
fullname:
type: text
required: true
row2:
type: row
fields:
column1:
type: column
width: 1-3
label: '{{admin.user.email}}'
column2:
type: column
width: 2-3
fields:
email:
type: email
required: true
row3:
type: row
fields:
column1:
type: column
width: 1-3
label: '{{admin.user.password}}'
column2:
type: column
width: 2-3
fields:
password:
type: password
placeholder: '{{admin.user.password.type-new-password}}'
disabled: true
pattern: '^.{8,}$'
autocomplete: new-password
row4:
type: row
fields:
column1:
type: column
width: 1-3
label: '{{admin.user.language}}'
column2:
type: column
width: 2-3
fields:
language:
type: select
required: true
translate: false
import:
options: 'Formwork\Admin\Admin::availableTranslations'
row5:
type: row
fields:
column1:
type: column
width: 1-3
label: '{{admin.user.role}}'
column2:
type: column
width: 2-3
fields:
role:
type: select
disabled: true
import:
options: 'Formwork\Admin\Users\Users::availableRoles'
row6:
type: row
fields:
column1:
type: column
width: 1-3
label: '{{admin.user.color-scheme}}'
column2:
type: column
width: 2-3
fields:
color-scheme:
type: togglegroup
options:
light: '{{admin.user.color-scheme.light}}'
dark: '{{admin.user.color-scheme.dark}}'
auto: '{{admin.user.color-scheme.auto}}'
row7:
type: row
fields:
column1:
type: column
width: 1-3
label: '{{admin.user.avatar}}'
column2:
type: column
width: 2-3
fields:
avatar:
type: file
accept: .jpg, .jpeg, .png, .gif