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

38 lines
1.6 KiB
PHP
Raw Normal View History

2023-08-07 15:31:42 +02:00
<div>
2023-12-07 19:06:32 +01:00
<form class="flex flex-col gap-2 pb-6" wire:submit='submit'>
2023-08-07 15:31:42 +02:00
<div class="flex items-start gap-2">
<div class="pb-4">
2024-04-26 14:09:54 +02:00
<h1>Storage Details</h1>
<div class="subtitle">{{ $storage->name }}</div>
2023-10-10 13:10:43 +02:00
@if ($storage->is_usable)
2024-04-26 14:09:54 +02:00
<div>Usable</div>
2023-10-10 13:10:43 +02:00
@else
2024-04-26 14:09:54 +02:00
<div class="text-red-500">Not Usable</div>
2023-10-10 13:10:43 +02:00
@endif
2023-08-07 15:31:42 +02:00
</div>
<x-forms.button type="submit">
Save
</x-forms.button>
<x-forms.button wire:click="test_s3_connection">
2023-10-10 13:10:43 +02:00
Validate Connection
2023-08-07 15:31:42 +02:00
</x-forms.button>
2024-03-20 12:54:06 +01:00
<x-modal-confirmation isErrorButton buttonTitle="Delete">
2024-01-31 16:14:12 +01:00
This storage will be deleted. It is not reversible. Your data won't be touched!<br>Please think again.
2024-03-20 12:54:06 +01:00
</x-modal-confirmation>
2023-08-07 15:31:42 +02:00
</div>
<div class="flex gap-2">
2023-08-11 20:19:42 +02:00
<x-forms.input label="Name" id="storage.name" />
<x-forms.input label="Description" id="storage.description" />
2023-08-07 15:31:42 +02:00
</div>
<div class="flex gap-2">
2023-08-11 20:19:42 +02: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 15:31:42 +02:00
</div>
<div class="flex gap-2">
2023-08-11 20:19:42 +02: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 15:31:42 +02:00
</div>
</form>
</div>