manage cities added, edit venue images

This commit is contained in:
HolgerHatGarKeineNode
2023-02-27 13:09:46 +01:00
parent 03fcb375bf
commit 1dda151060
26 changed files with 189 additions and 56 deletions

View File

@@ -1,9 +1,9 @@
<div class="flex flex-col space-y-1">
@if($type === 'school')
@if($type === 'school' && !$manage)
<div>
<div>
@if($row->course_events_count > 0)
<x-button amber wire:click="proximitySearch({{ $row->id }})" class="text-21gray">
<x-button xs amber wire:click="proximitySearch({{ $row->id }})" class="text-21gray">
<i class="fa fa-thin fa-person-chalkboard mr-2"></i>
{{ __('Perimeter search course date :name (100km)', ['name' => $row->name]) }}
</x-button>
@@ -11,7 +11,7 @@
</div>
<div>
@if($row->course_events_count < 1)
<x-button outlined wire:click="proximitySearch({{ $row->id }})" class="text-21gray">
<x-button xs outlined wire:click="proximitySearch({{ $row->id }})" class="text-21gray">
<i class="fa fa-thin fa-person-chalkboard mr-2"></i>
{{ __('Perimeter search course date :name (100km)', ['name' => $row->name]) }}
</x-button>
@@ -20,13 +20,21 @@
</div>
@endif
<div>
@if($type === 'bookCase')
@if($type === 'bookCase' && !$manage)
<div>
<x-button amber wire:click="proximitySearchForBookCases({{ $row->id }})" class="text-21gray">
<x-button xs amber wire:click="proximitySearchForBookCases({{ $row->id }})" class="text-21gray">
<i class="fa fa-thin fa-book mr-2"></i>
{{ __('Perimeter search bookcase :name (25km)', ['name' => $row->name]) }}
</x-button>
</div>
@endif
</div>
<div>
@can('update', $row)
<x-button xs :href="route('city.form', ['city' => $row])">
<i class="fa fa-thin fa-edit"></i>
{{ __('Edit') }}
</x-button>
@endcan
</div>
</div>

View File

@@ -1,8 +1,6 @@
<div class="w-full mb-4 md:w-auto md:mb-0" x-data="{currentUrl: window.location.href}">
<a x-bind:href="'/city/form/?fromUrl='+currentUrl">
<x-button>
<i class="fa fa-thin fa-plus"></i>
{{ __('New City') }}
</x-button>
</a>
<div class="w-full mb-4 md:w-auto md:mb-0">
<x-button :href="route('city.form')">
<i class="fa fa-thin fa-plus"></i>
{{ __('New City') }}
</x-button>
</div>

View File

@@ -1,13 +1,13 @@
<div class="flex flex-col space-y-1">
<div>
@if($row->course_events_count > 0)
@if($row->course_events_count > 0 && !$manage)
<x-button xs amber wire:click="venueSearch({{ $row->id }})">
{{ __('Show dates') }} ({{ $row->course_events_count }})
</x-button>
@endif
</div>
<div>
@if($row->course_events_count < 1)
@if($row->course_events_count < 1 && !$manage)
<x-button xs outlined wire:click="venueSearch({{ $row->id }})">
{{ __('Show dates') }} ({{ $row->course_events_count }})
</x-button>