mirror of
https://github.com/tiennm99/coolify.git
synced 2026-08-20 06:23:23 +00:00
40 lines
2.0 KiB
PHP
40 lines
2.0 KiB
PHP
<form wire:submit="submit" class="application-settings-form">
|
|
<x-unsaved-bar action="submit" />
|
|
|
|
<x-application.settings-section title="General"
|
|
description="S3-compatible destination used by database and volume backups.">
|
|
<x-slot:actions>
|
|
@can('validateConnection', $storage)
|
|
<x-forms.button type="button" wire:click="testConnection">
|
|
<x-reicon name="check-circle" class="size-3.5" />
|
|
Validate connection
|
|
</x-forms.button>
|
|
@endcan
|
|
</x-slot:actions>
|
|
|
|
<div class="grid gap-4 lg:grid-cols-2">
|
|
<x-forms.input canGate="update" :canResource="$storage" label="Name" id="name" />
|
|
<x-forms.input canGate="update" :canResource="$storage" label="Description" id="description" />
|
|
<div class="lg:col-span-2">
|
|
@can('update', $storage)
|
|
<x-forms.domain-input id="endpointParts" errorId="endpoint" host-label="Host"
|
|
host-placeholder="minio.internal or 192.168.1.50" />
|
|
@else
|
|
<x-forms.input label="Endpoint" :value="$endpoint" disabled />
|
|
@endcan
|
|
</div>
|
|
<x-forms.input canGate="update" :canResource="$storage" required label="Bucket" id="bucket" />
|
|
<x-forms.input canGate="update" :canResource="$storage" required label="Region" id="region" />
|
|
@if ($isPasswordHiddenForMember)
|
|
<x-forms.input label="Access key" disabled value="Hidden (only admins can view)" />
|
|
<x-forms.input label="Secret key" disabled value="Hidden (only admins can view)" />
|
|
@else
|
|
<x-forms.input canGate="update" :canResource="$storage" required type="password"
|
|
label="Access key" id="key" />
|
|
<x-forms.input canGate="update" :canResource="$storage" required type="password"
|
|
label="Secret key" id="secret" />
|
|
@endif
|
|
</div>
|
|
</x-application.settings-section>
|
|
</form>
|