From 96883dabe3e8214ba34b3fcbd444b8fbeec9cada Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Thu, 25 Apr 2024 15:04:49 +0200 Subject: [PATCH] fix tags + ui --- .../livewire/project/resource/index.blade.php | 2 +- .../livewire/project/shared/tags.blade.php | 4 +-- resources/views/livewire/tags/show.blade.php | 25 +++++++++++-------- 3 files changed, 17 insertions(+), 14 deletions(-) diff --git a/resources/views/livewire/project/resource/index.blade.php b/resources/views/livewire/project/resource/index.blade.php index 25acae945..28c2de0f4 100644 --- a/resources/views/livewire/project/resource/index.blade.php +++ b/resources/views/livewire/project/resource/index.blade.php @@ -71,7 +71,7 @@ class="items-center justify-center box">+ Add New Resource
-
+
diff --git a/resources/views/livewire/project/shared/tags.blade.php b/resources/views/livewire/project/shared/tags.blade.php index 866e60cdd..2d4240dfa 100644 --- a/resources/views/livewire/project/shared/tags.blade.php +++ b/resources/views/livewire/project/shared/tags.blade.php @@ -1,6 +1,6 @@

Tags

-
+
@if (data_get($this->resource, 'tags')) @forelse (data_get($this->resource,'tags') as $tagId => $tag)
Exisiting Tags
Click to add quickly
-
+
@foreach ($tags as $tag) {{ $tag->name }} diff --git a/resources/views/livewire/tags/show.blade.php b/resources/views/livewire/tags/show.blade.php index bd1c4901f..1a778f024 100644 --- a/resources/views/livewire/tags/show.blade.php +++ b/resources/views/livewire/tags/show.blade.php @@ -8,8 +8,7 @@
Available tags
@forelse ($tags as $oneTag) - {{ $oneTag->name }} @empty
No tags yet defined yet. Go to a resource and add a tag there.
@@ -28,19 +27,23 @@ class="w-64 box"