more work on backup-storages

Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann
2023-06-08 11:56:58 +02:00
parent c3205d3672
commit ddcd55a83d
9 changed files with 165 additions and 84 deletions

View File

@@ -36,7 +36,9 @@ return [
'fields' => [
'description' => [
'label' => lng('backup.backup_storage.description'),
'type' => 'text'
'type' => 'text',
'maxlength' => 200,
'mandatory' => true,
],
'type' => [
'label' => lng('backup.backup_storage.type'),
@@ -48,7 +50,8 @@ return [
'sftp' => lng('backup.backup_storage.type_sftp'),
'rsync' => lng('backup.backup_storage.type_rsync'),
's3' => lng('backup.backup_storage.type_s3'),
]
],
'mandatory' => true,
],
'region' => [
'label' => lng('backup.backup_storage.region'),
@@ -72,7 +75,8 @@ return [
],
'password' => [
'label' => lng('backup.backup_storage.password'),
'type' => 'text'
'type' => 'password',
'autocomplete' => 'off',
],
'pgp_public_key' => [
'label' => lng('backup.backup_storage.pgp_public_key'),

View File

@@ -35,7 +35,8 @@ return [
'description' => [
'label' => lng('backup.backup_storage.description'),
'type' => 'text',
'value' => $result['description']
'value' => $result['description'],
'mandatory' => true,
],
'type' => [
'label' => lng('backup.backup_storage.type'),
@@ -47,7 +48,8 @@ return [
'sftp' => lng('backup.backup_storage.type_sftp'),
'rsync' => lng('backup.backup_storage.type_rsync'),
's3' => lng('backup.backup_storage.type_s3'),
]
],
'mandatory' => true,
],
'region' => [
'label' => lng('backup.backup_storage.region'),
@@ -75,7 +77,7 @@ return [
'value' => $result['username']
],
'password' => [
'label' => lng('backup.backup_storage.password'),
'label' => lng('backup.backup_storage.password') . '&nbsp;(' . lng('panel.emptyfornochanges') . ')',
'type' => 'password',
'autocomplete' => 'off'
],