coolify/resources/views/livewire/storage/form.blade.php

42 lines
2.1 KiB
PHP
Raw Normal View History

2023-08-07 13:31:42 +00:00
<div>
2023-12-07 18:06:32 +00:00
<form class="flex flex-col gap-2 pb-6" wire:submit='submit'>
2023-08-07 13:31:42 +00:00
<div class="flex items-start gap-2">
<div class="pb-4">
2024-04-26 12:09:54 +00:00
<h1>Storage Details</h1>
<div class="subtitle">{{ $storage->name }}</div>
2023-10-10 11:10:43 +00:00
@if ($storage->is_usable)
2024-04-26 12:09:54 +00:00
<div>Usable</div>
2023-10-10 11:10:43 +00:00
@else
2024-04-26 12:09:54 +00:00
<div class="text-red-500">Not Usable</div>
2023-10-10 11:10:43 +00:00
@endif
2023-08-07 13:31:42 +00:00
</div>
<x-forms.button type="submit">
Save
</x-forms.button>
<x-forms.button wire:click="test_s3_connection">
2023-10-10 11:10:43 +00:00
Validate Connection
2023-08-07 13:31:42 +00:00
</x-forms.button>
<x-modal-confirmation title="Confirm Storage Deletion?" isErrorButton buttonTitle="Delete"
submitAction="delete({{ $storage->id }})" :actions="[
'The selected storage location will be permanently deleted from Coolify.',
'If the storage location is in use by any backup jobs those backup jobs will only store the backup locally on the server.',
]" confirmationText="{{ $storage->name }}"
2024-09-04 19:29:32 +00:00
confirmationLabel="Please confirm the execution of the actions by entering the Storage Name below"
shortConfirmationLabel="Storage Name" :confirmWithPassword="false" step2ButtonText="Permanently Delete" />
2023-08-07 13:31:42 +00:00
</div>
<div class="flex gap-2">
2023-08-11 18:19:42 +00:00
<x-forms.input label="Name" id="storage.name" />
<x-forms.input label="Description" id="storage.description" />
2023-08-07 13:31:42 +00:00
</div>
<div class="flex gap-2">
2023-08-11 18:19:42 +00:00
<x-forms.input required label="Endpoint" id="storage.endpoint" />
<x-forms.input required label="Bucket" id="storage.bucket" />
<x-forms.input required label="Region" id="storage.region" />
2023-08-07 13:31:42 +00:00
</div>
<div class="flex gap-2">
2023-08-11 18:19:42 +00:00
<x-forms.input required type="password" label="Access Key" id="storage.key" />
<x-forms.input required type="password" label="Secret Key" id="storage.secret" />
2023-08-07 13:31:42 +00:00
</div>
</form>
</div>