From 139e258664224a9cde0c554d4411e4265a30173d Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Thu, 2 May 2024 09:49:10 +0200 Subject: [PATCH] ui: update resource operations view --- .../shared/resource-operations.blade.php | 77 +++++++++---------- 1 file changed, 36 insertions(+), 41 deletions(-) diff --git a/resources/views/livewire/project/shared/resource-operations.blade.php b/resources/views/livewire/project/shared/resource-operations.blade.php index 6419da632..380b5ba91 100644 --- a/resources/views/livewire/project/shared/resource-operations.blade.php +++ b/resources/views/livewire/project/shared/resource-operations.blade.php @@ -1,58 +1,53 @@

Resource Operations

You can easily make different kind of operations on this resource.
-

Clone

-
-
- Clone this resource to another project / environment. -
-
+

Clone

+
To another project / environment on a different server.
+
+
@foreach ($servers->sortBy('id') as $server) -
-
- @foreach ($server->destinations() as $destination) - - -
-
-
{{ $server->name }}
-
{{ $destination->name }}
-
-
-
-
You are about to clone this resource.
-
- @endforeach -
-
+
Server: {{ $server->name }}
+ @foreach ($server->destinations() as $destination) + + +
+
+
Network
+
{{ $destination->name }}
+
+
+
+
You are about to clone this resource.
+
+ @endforeach @endforeach
-

Move

+

Move

+
Between projects / environments.
-
+
This resource is currently in the {{ $resource->environment->project->name }} / {{ $resource->environment->name }} environment.
-
+
@forelse ($projects as $project) -
- @foreach ($project->environments as $environment) - - -
-
-
{{ $project->name }}
-
environment: {{ $environment->name }} -
-
+
Project: {{ $project->name }}
+ + @foreach ($project->environments as $environment) + + +
+
+
Environment
+
{{ $environment->name }}
- -
You are about to move this resource.
- - @endforeach -
+
+
+
You are about to move this resource.
+
+ @endforeach @empty
No projects found to move to
@endforelse