2023-08-09 15:57:27 +00:00
|
|
|
<dialog id="createScheduledBackup" class="modal">
|
2023-12-07 18:06:32 +00:00
|
|
|
<form method="dialog" class="flex flex-col gap-2 rounded modal-box" wire:submit='submit'>
|
2023-08-11 15:49:54 +00:00
|
|
|
<h2>New Backup</h2>
|
|
|
|
<x-forms.input placeholder="0 0 * * * or daily" id="frequency" label="Frequency" required />
|
2023-08-11 14:13:53 +00:00
|
|
|
<h3>S3 Storage</h3>
|
2023-08-11 15:49:54 +00:00
|
|
|
<x-forms.checkbox id="save_s3" label="Save to S3" />
|
|
|
|
<x-forms.select id="selected_storage_id">
|
|
|
|
@if ($s3s->count() === 0)
|
|
|
|
<option value="0">No S3 Storages found.</option>
|
|
|
|
@else
|
|
|
|
@foreach ($s3s as $s3)
|
|
|
|
<option value="{{ $s3->id }}">{{ $s3->name }}</option>
|
|
|
|
@endforeach
|
|
|
|
@endif
|
2023-08-11 14:13:53 +00:00
|
|
|
</x-forms.select>
|
2023-08-09 15:57:27 +00:00
|
|
|
<x-forms.button onclick="createScheduledBackup.close()" type="submit">
|
|
|
|
Save
|
|
|
|
</x-forms.button>
|
|
|
|
</form>
|
|
|
|
<form method="dialog" class="modal-backdrop">
|
|
|
|
<button>close</button>
|
|
|
|
</form>
|
|
|
|
</dialog>
|