* @license https://files.froxlor.org/misc/COPYING.txt GPLv2 */ use Froxlor\UI\Callbacks\Admin; use Froxlor\UI\Callbacks\Customer; use Froxlor\UI\Callbacks\Impersonate; use Froxlor\UI\Callbacks\PHPConf; use Froxlor\UI\Callbacks\ProgressBar; use Froxlor\UI\Callbacks\Style; use Froxlor\UI\Callbacks\Text; use Froxlor\UI\Listing; return [ 'backup_storages_list' => [ 'title' => lng('backup.backup_storage.list'), 'icon' => 'fa-solid fa-file-archive', 'self_overview' => ['section' => 'backups', 'page' => 'storages'], 'default_sorting' => ['description' => 'asc'], 'columns' => [ 'id' => [ 'label' => 'ID', 'field' => 'id', 'sortable' => true, ], 'description' => [ 'label' => lng('backup.backup_storage.description'), 'field' => 'description', 'sortable' => true, ], 'type' => [ 'label' => lng('backup.backup_storage.type'), 'field' => 'type', 'sortable' => true, ], 'region' => [ 'label' => lng('backup.backup_storage.region'), 'field' => 'region', 'sortable' => true, ], 'bucket' => [ 'label' => lng('backup.backup_storage.bucket'), 'field' => 'bucket', 'sortable' => true, ], 'destination_path' => [ 'label' => lng('backup.backup_storage.destination_path.title'), 'field' => 'destination_path', 'sortable' => true, ], 'hostname' => [ 'label' => lng('backup.backup_storage.hostname'), 'field' => 'hostname', 'sortable' => true, ], 'username' => [ 'label' => lng('backup.backup_storage.username'), 'field' => 'username', 'sortable' => true, ], 'retention' => [ 'label' => lng('backup.backup_storage.retention'), 'field' => 'retention', 'sortable' => true, ], ], 'visible_columns' => Listing::getVisibleColumnsForListing('backup_storages_list', [ 'id', 'description', 'type', 'retention', ]), 'actions' => [ 'show' => [ 'icon' => 'fa-solid fa-eye', 'title' => lng('usersettings.custom_notes.title'), ], 'edit' => [ 'icon' => 'fa-solid fa-edit', 'title' => lng('panel.edit'), 'href' => [ 'section' => 'backups', 'page' => 'storages', 'action' => 'edit', 'id' => ':id' ], ], 'delete' => [ 'icon' => 'fa-solid fa-trash', 'title' => lng('panel.delete'), 'class' => 'btn-danger', 'href' => [ 'section' => 'backups', 'page' => 'storages', 'action' => 'delete', 'id' => ':id' ], 'visible' => [PHPConf::class, 'isNotDefault'] ], ], ] ];