mostly css

This commit is contained in:
Andras Bacsai
2023-05-31 10:19:29 +02:00
parent 40bab90946
commit 232d2ccf79
21 changed files with 138 additions and 90 deletions

View File

@@ -1,10 +1,8 @@
<form wire:submit.prevent='submit' class="flex flex-col px-2 pt-10 max-w-fit">
<div class="flex gap-2">
<div class="flex items-end gap-2">
<x-forms.input placeholder="pv-name" noDirty id="name" label="Name" required />
<x-forms.input placeholder="/root" noDirty id="host_path" label="Source Path" />
<x-forms.input placeholder="/tmp/root" noDirty id="mount_path" label="Destination Path" required />
</div>
<div class="pt-2">
<x-forms.button type="submit">
Add
</x-forms.button>

View File

@@ -1,9 +1,12 @@
<div class="flex flex-col gap-2">
<h2>Storages</h2>
@forelse ($application->persistentStorages as $storage)
<livewire:project.application.storages.show wire:key="storage-{{ $storage->id }}" :storage="$storage" />
@empty
<p>There are no persistent storages attached for this application.</p>
@endforelse
<div>
<h2 class="pb-0">Storages</h2>
<div class="text-sm">Persistent storage to preserve data between deployments.</div>
<div class="flex flex-col gap-2 py-4">
@forelse ($application->persistentStorages as $storage)
<livewire:project.application.storages.show wire:key="storage-{{ $storage->id }}" :storage="$storage" />
@empty
<p>There are no persistent storages attached for this application.</p>
@endforelse
</div>
<livewire:project.application.storages.add />
</div>

View File

@@ -1,11 +1,9 @@
<div x-data="{ deleteStorage: false }">
<form wire:submit.prevent='submit' class="flex flex-col px-2 max-w-fit">
<div class="flex gap-2">
<form wire:submit.prevent='submit' class="flex flex-col px-2">
<div class="flex items-end gap-2">
<x-forms.input id="storage.name" label="Name" required />
<x-forms.input id="storage.host_path" label="Source Path" />
<x-forms.input id="storage.mount_path" label="Destination Path" required />
</div>
<div class="pt-2">
<x-forms.button type="submit">
Update
</x-forms.button>