formwork/admin/schemes/system.yml
2020-12-26 15:30:15 +01:00

365 lines
14 KiB
YAML

title: System
fields:
section1:
type: header
label: '{{admin.options.system.date-and-time}}'
rows1:
type: rows
fields:
row1:
type: row
fields:
column1:
type: column
width: 1-3
label: '{{admin.options.system.date-and-time.date-format}}'
column2:
type: column
width: 2-3
fields:
date.format:
type: select
import:
options: 'Formwork\Admin\Utils\DateFormats::date'
row2:
type: row
fields:
column1:
type: column
width: 1-3
label: '{{admin.options.system.date-and-time.hour-format}}'
column2:
type: column
width: 2-3
fields:
date.time_format:
type: select
import:
options: 'Formwork\Admin\Utils\DateFormats::hour'
row3:
type: row
fields:
column1:
type: column
width: 1-3
label: '{{admin.options.system.date-and-time.timezone}}'
column2:
type: column
width: 2-3
fields:
date.timezone:
type: select
import:
options: 'Formwork\Admin\Utils\DateFormats::timezones'
row4:
type: row
fields:
column1:
type: column
width: 1-3
label: '{{admin.options.system.date-and-time.first-weekday}}'
column2:
type: column
width: 2-3
fields:
date.week_starts:
type: select
options:
0: '{{admin.options.system.date-and-time.first-weekday.sunday}}'
1: '{{admin.options.system.date-and-time.first-weekday.monday}}'
section2:
type: header
label: '{{admin.options.system.languages}}'
rows2:
type: rows
fields:
row1:
type: row
fields:
column1:
type: column
width: 1-3
label: '{{admin.options.system.languages.available-languages}}'
column2:
type: column
width: 2-3
fields:
languages.available:
type: tags
placeholder: '{{admin.options.system.languages.available-languages.no-languages}}'
pattern: '^[a-z]{2,3}$'
translate: [placeholder]
import:
options: 'Formwork\Languages\LanguageCodes::names'
row2:
type: row
fields:
column1:
type: column
width: 1-3
label: '{{admin.options.system.languages.preferred-language}}'
column2:
type: column
width: 2-3
fields:
languages.http_preferred:
type: togglegroup
options:
1: '{{admin.options.system.languages.preferred-language.enabled}}'
0: '{{admin.options.system.languages.preferred-language.disabled}}'
section3:
type: header
label: '{{admin.options.system.files}}'
rows3:
type: rows
fields:
row1:
type: row
fields:
column1:
type: column
width: 1-3
label: '{{admin.options.system.files.allowed-extensions}}'
column2:
type: column
width: 2-3
fields:
files.allowed_extensions:
type: tags
pattern: '^\.[a-zA-Z0-9]+$'
required: true
section4:
type: header
label: '{{admin.options.system.cache}}'
rows4:
type: rows
fields:
row1:
type: row
fields:
column1:
type: column
width: 1-3
label: '{{admin.options.system.cache}}'
column2:
type: column
width: 2-3
fields:
cache.enabled:
type: togglegroup
options:
1: '{{admin.options.system.cache.enabled}}'
0: '{{admin.options.system.cache.disabled}}'
row2:
type: row
fields:
column1:
type: column
width: 1-3
label: '{{admin.options.system.cache.time}}'
column2:
type: column
width: 2-3
fields:
cache.time:
type: duration
min: 900
step: 900
intervals: [weeks, days, hours, minutes]
translate: false
required: true
section5:
type: header
label: '{{admin.options.system.admin-panel}}'
rows5:
type: rows
fields:
row1:
type: row
fields:
column1:
type: column
width: 1-3
label: '{{admin.options.system.admin-panel.default-language}}'
column2:
type: column
width: 2-3
fields:
admin.lang:
type: select
translate: false
import:
options: 'Formwork\Admin\Translation::availableLanguages'
row2:
type: row
fields:
column1:
type: column
width: 1-3
label: '{{admin.options.system.admin-panel.logout-redirects-to}}'
column2:
type: column
width: 2-3
fields:
admin.logout_redirect:
type: togglegroup
options:
login: '{{admin.options.system.admin-panel.logout-redirects-to.login}}'
home: '{{admin.options.system.admin-panel.logout-redirects-to.home}}'
row3:
type: row
fields:
column1:
type: column
width: 1-3
label: '{{admin.options.system.admin-panel.session-timeout}}'
column2:
type: column
width: 2-3
fields:
admin.session_timeout:
type: duration
min: 0
unit: minutes
intervals: [hours, minutes]
translate: false
required: true
row4:
type: row
fields:
column1:
type: column
width: 1-3
label: '{{admin.options.system.admin-panel.default-color-scheme}}'
column2:
type: column
width: 2-3
fields:
admin.color_scheme:
type: togglegroup
options:
light: '{{admin.options.system.admin-panel.default-color-scheme.light}}'
dark: '{{admin.options.system.admin-panel.default-color-scheme.dark}}'
section6:
type: header
label: '{{admin.options.system.images}}'
rows6:
type: rows
fields:
row1:
type: row
fields:
column1:
type: column
width: 1-3
label: '{{admin.options.system.images.jpeg-quality}}'
column2:
type: column
width: 2-3
fields:
images.jpeg_quality:
type: range
min: 0
max: 100
step: 5
row2:
type: row
fields:
column1:
type: column
width: 1-3
label: '{{admin.options.system.images.png-compression-level}}'
column2:
type: column
width: 2-3
fields:
images.png_compression:
type: range
min: 0
max: 9
row3:
type: row
fields:
column1:
type: column
width: 1-3
label: '{{admin.options.system.images.webp-quality}}'
column2:
type: column
width: 2-3
fields:
images.webp_quality:
type: range
min: 0
max: 100
step: 5
row4:
type: row
fields:
column1:
type: column
width: 1-3
label: '{{admin.options.system.images.jpeg-save-progressive}}'
column2:
type: column
width: 2-3
fields:
images.jpeg_progressive:
type: togglegroup
options:
1: '{{admin.options.system.images.jpeg-save-progressive.enabled}}'
0: '{{admin.options.system.images.jpeg-save-progressive.disabled}}'
row5:
type: row
fields:
column1:
type: column
width: 1-3
label: '{{admin.options.system.images.process-uploads}}'
column2:
type: column
width: 2-3
fields:
images.process_uploads:
type: togglegroup
options:
1: '{{admin.options.system.images.process-uploads.enabled}}'
0: '{{admin.options.system.images.process-uploads.disabled}}'
section7:
type: header
label: '{{admin.options.system.backup}}'
rows7:
type: rows
fields:
row1:
type: row
fields:
column1:
type: column
width: 1-3
label: '{{admin.options.system.backup.backup-files-to-keep}}'
column2:
type: column
width: 2-3
fields:
backup.max_files:
type: select
options:
5: 5
10: 10
15: 15
20: 20