fix: no storage

This commit is contained in:
Andras Bacsai 2023-08-11 17:49:54 +02:00
parent 833e45155d
commit 8a93f1fc0c

View File

@ -1,13 +1,17 @@
<dialog id="createScheduledBackup" class="modal">
<form method="dialog" class="flex flex-col gap-2 rounded modal-box" wire:submit.prevent='submit'>
<h3>Details</h3>
<x-forms.input placeholder="1 * * * *" id="frequency" label="Frequency" required/>
<h2>New Backup</h2>
<x-forms.input placeholder="0 0 * * * or daily" id="frequency" label="Frequency" required />
<h3>S3 Storage</h3>
<x-forms.checkbox id="save_s3" label="Save to S3"/>
<x-forms.select label="S3 Storages" id="selected_storage_id">
@foreach($s3s as $s3)
<option value="{{ $s3->id }}">{{ $s3->name }}</option>
@endforeach
<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
</x-forms.select>
<x-forms.button onclick="createScheduledBackup.close()" type="submit">
Save