# Conflicts: # app/Http/Controllers/Api/SecurityController.php # app/Http/Controllers/Api/ServersController.php # app/Livewire/Admin/Index.php # app/Livewire/Destination/Show.php # app/Livewire/NavbarDeleteTeam.php # app/Livewire/Project/Application/Previews.php # app/Livewire/Project/DeleteProject.php # app/Livewire/Project/Shared/ResourceOperations.php # app/Livewire/Server/Resources.php # app/Livewire/Server/ValidateAndInstall.php # app/Livewire/Storage/Show.php # resources/views/livewire/dashboard.blade.php # resources/views/livewire/project/application/heading.blade.php # resources/views/livewire/project/database/heading.blade.php # resources/views/livewire/project/service/heading.blade.php # resources/views/livewire/project/shared/environment-variable/show.blade.php # resources/views/livewire/project/shared/scheduled-task/show.blade.php # tests/Feature/Security/TrustHostsMiddlewareTest.php
29 lines
1.5 KiB
PHP
29 lines
1.5 KiB
PHP
<div>
|
|
<form class="flex flex-col gap-2 pb-6" wire:submit='submit'>
|
|
<div class="flex gap-2">
|
|
<x-forms.input canGate="update" :canResource="$storage" label="Name" id="name" />
|
|
<x-forms.input canGate="update" :canResource="$storage" label="Description" id="description" />
|
|
</div>
|
|
<div class="flex gap-2">
|
|
<x-forms.input canGate="update" :canResource="$storage" required label="Endpoint" id="endpoint" />
|
|
<x-forms.input canGate="update" :canResource="$storage" required label="Bucket" id="bucket" />
|
|
<x-forms.input canGate="update" :canResource="$storage" required label="Region" id="region" />
|
|
</div>
|
|
<div class="flex gap-2">
|
|
@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>
|
|
@can('validateConnection', $storage)
|
|
<x-forms.button class="mt-4" isHighlighted wire:click="testConnection">
|
|
Validate Connection
|
|
</x-forms.button>
|
|
@endcan
|
|
</form>
|
|
</div>
|