news edit

This commit is contained in:
HolgerHatGarKeineNode
2023-02-11 13:41:22 +01:00
parent d753af1123
commit 89bbf6ff1d
3 changed files with 17 additions and 5 deletions

10
composer.lock generated
View File

@@ -14468,16 +14468,16 @@
},
{
"name": "laravel-lang/lang",
"version": "12.15.2",
"version": "12.16.0",
"source": {
"type": "git",
"url": "https://github.com/Laravel-Lang/lang.git",
"reference": "70cb5db65ad0d1dc641c7534b620b137684c3f49"
"reference": "0536e0617b3ed07d4fab04b28960d611a3709eb2"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/Laravel-Lang/lang/zipball/70cb5db65ad0d1dc641c7534b620b137684c3f49",
"reference": "70cb5db65ad0d1dc641c7534b620b137684c3f49",
"url": "https://api.github.com/repos/Laravel-Lang/lang/zipball/0536e0617b3ed07d4fab04b28960d611a3709eb2",
"reference": "0536e0617b3ed07d4fab04b28960d611a3709eb2",
"shasum": ""
},
"require": {
@@ -14539,7 +14539,7 @@
"type": "open_collective"
}
],
"time": "2023-02-08T21:07:50+00:00"
"time": "2023-02-11T09:51:27+00:00"
},
{
"name": "laravel-lang/publisher",

View File

@@ -64,6 +64,14 @@
<span>{{ $libraryItem->read_time }} {{ __('min read') }}</span>
@endif
</div>
<div class="flex space-x-1 text-sm text-gray-500 justify-end">
@if($libraryItem->created_by == auth()->id())
<x-button :href="route('news.form', ['libraryItem' => $libraryItem])">
<i class="fa fa-thin fa-edit"></i>
{{ __('Edit') }}
</x-button>
@endif
</div>
</div>
</div>
</div>

View File

@@ -52,6 +52,10 @@
<div class="text-gray-200">{{ __('Preview') }}:</div>
<img class="h-48 object-contain" src="{{ $image->temporaryUrl() }}">
@endif
@if ($libraryItem->getFirstMediaUrl('main'))
<div class="text-gray-200">{{ __('Current picture') }}:</div>
<img class="h-48 object-contain" src="{{ $libraryItem->getFirstMediaUrl('main') }}">
@endif
</div>
<input class="text-gray-200" type="file" wire:model="image">
@error('image') <span class="text-red-500">{{ $message }}</span> @enderror