121 lines
4.1 KiB
YAML
Raw Normal View History

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
2018-10-10 00:14:58 +02:00
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
2018-10-10 00:14:58 +02:00
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
2018-10-10 00:14:58 +02:00
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\Translation::availableLanguages'
2018-10-10 00:14:58 +02:00
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'
2018-10-10 00:14:58 +02:00
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