and again more work on backup-storages
Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
@@ -27,12 +27,12 @@ use Froxlor\Settings;
|
||||
|
||||
return [
|
||||
'backup_storage_add' => [
|
||||
'title' => lng('backups.backup_storage_add'),
|
||||
'title' => lng('backup.backup_storage.add'),
|
||||
'image' => 'fa-solid fa-file-archive',
|
||||
'self_overview' => ['section' => 'backups', 'page' => 'storages'],
|
||||
'sections' => [
|
||||
'section_a' => [
|
||||
'title' => lng('backup.backup_storage_create'),
|
||||
'title' => lng('backup.backup_storage.create'),
|
||||
'fields' => [
|
||||
'description' => [
|
||||
'label' => lng('backup.backup_storage.description'),
|
||||
@@ -63,7 +63,8 @@ return [
|
||||
],
|
||||
'destination_path' => [
|
||||
'label' => lng('backup.backup_storage.destination_path'),
|
||||
'type' => 'text'
|
||||
'type' => 'text',
|
||||
'mandatory' => true,
|
||||
],
|
||||
'hostname' => [
|
||||
'label' => lng('backup.backup_storage.hostname'),
|
||||
@@ -75,7 +76,7 @@ return [
|
||||
],
|
||||
'password' => [
|
||||
'label' => lng('backup.backup_storage.password'),
|
||||
'type' => 'password',
|
||||
'type' => 'textarea',
|
||||
'autocomplete' => 'off',
|
||||
],
|
||||
'pgp_public_key' => [
|
||||
@@ -87,6 +88,7 @@ return [
|
||||
'label' => lng('backup.backup_storage.retention'),
|
||||
'type' => 'number',
|
||||
'min' => 0,
|
||||
'value' => Settings::Get('backup.default_retention')
|
||||
]
|
||||
]
|
||||
]
|
||||
|
||||
@@ -25,12 +25,12 @@
|
||||
|
||||
return [
|
||||
'backup_storage_edit' => [
|
||||
'title' => lng('backups.backup_storage_edit'),
|
||||
'title' => lng('backup.backup_storage.edit'),
|
||||
'image' => 'fa-solid fa-file-archive',
|
||||
'self_overview' => ['section' => 'backups', 'page' => 'storages'],
|
||||
'sections' => [
|
||||
'section_a' => [
|
||||
'title' => lng('backup.backup_storage_edit'),
|
||||
'title' => lng('backup.backup_storage.edit'),
|
||||
'fields' => [
|
||||
'description' => [
|
||||
'label' => lng('backup.backup_storage.description'),
|
||||
@@ -64,7 +64,8 @@ return [
|
||||
'destination_path' => [
|
||||
'label' => lng('backup.backup_storage.destination_path'),
|
||||
'type' => 'text',
|
||||
'value' => $result['destination_path']
|
||||
'value' => $result['destination_path'],
|
||||
'mandatory' => true,
|
||||
],
|
||||
'hostname' => [
|
||||
'label' => lng('backup.backup_storage.hostname'),
|
||||
@@ -77,8 +78,9 @@ return [
|
||||
'value' => $result['username']
|
||||
],
|
||||
'password' => [
|
||||
'label' => lng('backup.backup_storage.password') . ' (' . lng('panel.emptyfornochanges') . ')',
|
||||
'type' => 'password',
|
||||
'label' => lng('backup.backup_storage.password.title'),
|
||||
'desc' => lng('backup.backup_storage.password.description') . '<br>(' . lng('panel.emptyfornochanges') . ')',
|
||||
'type' => 'textarea',
|
||||
'autocomplete' => 'off'
|
||||
],
|
||||
'pgp_public_key' => [
|
||||
|
||||
Reference in New Issue
Block a user