mirror of
https://github.com/tiennm99/coolify.git
synced 2026-09-12 10:19:00 +00:00
Add polymorphic volume backup scheduling for persistent volumes and directories, expose schedule management via API, and reorganize backup configuration and execution views.
46 lines
2.1 KiB
PHP
46 lines
2.1 KiB
PHP
<form wire:submit="submit" class="flex flex-col gap-4">
|
|
<div class="flex flex-col gap-3 sm:flex-row sm:items-center">
|
|
<h2>S3</h2>
|
|
<x-forms.button type="submit" class="w-full sm:w-auto">Save</x-forms.button>
|
|
@if (!$saveS3)
|
|
<x-forms.button type="button" wire:click="toggleS3" wire:loading.attr="disabled"
|
|
wire:target="toggleS3" isHighlighted :disabled="$availableS3Storages->isEmpty()">Enable S3</x-forms.button>
|
|
@else
|
|
<x-forms.button type="button" wire:click="toggleS3" wire:loading.attr="disabled"
|
|
wire:target="toggleS3">Disable S3</x-forms.button>
|
|
@endif
|
|
</div>
|
|
|
|
<div class="w-full max-w-md pb-2">
|
|
<div class="flex items-center gap-1 mb-1 text-sm font-medium">
|
|
<span>S3 Storage</span>
|
|
@if (!$saveS3)
|
|
<span class="text-xs font-normal text-warning">(currently disabled)</span>
|
|
@else
|
|
<x-highlighted text="*" />
|
|
@endif
|
|
</div>
|
|
<x-forms.select id="s3StorageId" wire:model.live="s3StorageId" :required="$saveS3"
|
|
:disabled="$availableS3Storages->isEmpty()">
|
|
@if ($availableS3Storages->isEmpty())
|
|
<option value="">No S3 storage available</option>
|
|
@else
|
|
@foreach ($availableS3Storages as $s3)
|
|
<option value="{{ $s3->id }}">{{ $s3->name }}</option>
|
|
@endforeach
|
|
@endif
|
|
</x-forms.select>
|
|
</div>
|
|
|
|
<div class="w-full max-w-md">
|
|
@if ($saveS3)
|
|
<x-forms.checkbox instantSave label="Disable Local Backup" id="disableLocalBackup"
|
|
helper="When enabled, backup files will be deleted from local storage immediately after uploading to S3. This requires S3 backup to be enabled." />
|
|
@else
|
|
<x-forms.checkbox disabled label="Disable Local Backup" id="disableLocalBackup"
|
|
helper="When enabled, backup files will be deleted from local storage immediately after uploading to S3. This requires S3 backup to be enabled." />
|
|
@endif
|
|
</div>
|
|
|
|
</form>
|