table buttons changed

This commit is contained in:
Benjamin Takats
2023-01-17 16:56:24 +01:00
parent ed24fe6616
commit 3a32d1ebe5
4 changed files with 20 additions and 19 deletions

View File

@@ -63,7 +63,8 @@ class Meetup extends Resource
->sortable(), ->sortable(),
Images::make(__('Logo'), 'logo') Images::make(__('Logo'), 'logo')
->conversionOnIndexView('thumb'), ->conversionOnIndexView('thumb')
->showStatistics(),
Text::make('Name') Text::make('Name')
->rules('required', 'string') ->rules('required', 'string')

View File

@@ -1,4 +1,4 @@
<div> <div class="flex flex-col space-y-1">
@if($row->meetup_events_count > 0) @if($row->meetup_events_count > 0)
<x-button <x-button
xs xs
@@ -7,17 +7,6 @@
<i class="fa fa-thin fa-calendar mr-2"></i> <i class="fa fa-thin fa-calendar mr-2"></i>
{{ __('Show dates') }} ({{ $row->meetup_events_count }}) {{ __('Show dates') }} ({{ $row->meetup_events_count }})
</x-button> </x-button>
<x-button
xs
x-data="{
textToCopy: '{{ route('meetup.ics', ['country' => $country, 'meetup' => $row->id]) }}',
}"
@click.prevent="window.navigator.clipboard.writeText(textToCopy);window.$wireui.notify({title:'{{ __('Calendar Stream Url copied!') }}',description:'{{ __('Paste the calendar stream link into a compatible calendar app.') }}',icon:'success'});"
amber>
<i class="fa fa-thin fa-calendar-arrow-down mr-2"></i>
{{ __('Calendar Stream-Url') }} ({{ $row->meetup_events_count }})
</x-button>
@endif @endif
@if($row->meetup_events_count < 1) @if($row->meetup_events_count < 1)
<x-button <x-button
@@ -28,6 +17,17 @@
{{ __('Show dates') }} ({{ $row->meetup_events_count }}) {{ __('Show dates') }} ({{ $row->meetup_events_count }})
</x-button> </x-button>
@endif @endif
<x-button
xs
black
x-data="{
textToCopy: '{{ route('meetup.ics', ['country' => $country, 'meetup' => $row->id]) }}',
}"
@click.prevent="window.navigator.clipboard.writeText(textToCopy);window.$wireui.notify({title:'{{ __('Calendar Stream Url copied!') }}',description:'{{ __('Paste the calendar stream link into a compatible calendar app.') }}',icon:'success'});"
>
<i class="fa fa-thin fa-calendar-arrow-down mr-2"></i>
{{ __('Calendar Stream-Url') }} ({{ $row->meetup_events_count }})
</x-button>
<x-button <x-button
black black
xs xs
@@ -39,7 +39,7 @@
@if($row->telegram_link) @if($row->telegram_link)
<x-button <x-button
xs xs
secondary black
target="_blank" target="_blank"
:href="$row->telegram_link" :href="$row->telegram_link"
> >
@@ -50,7 +50,7 @@
@if($row->webpage) @if($row->webpage)
<x-button <x-button
xs xs
secondary black
target="_blank" target="_blank"
:href="$row->webpage" :href="$row->webpage"
> >
@@ -61,7 +61,7 @@
@if($row->twitter_username) @if($row->twitter_username)
<x-button <x-button
xs xs
secondary black
target="_blank" target="_blank"
:href="$row->twitter_username" :href="$row->twitter_username"
> >

View File

@@ -1,5 +1,5 @@
<div class="flex items-center space-x-2"> <div class="flex items-center space-x-2">
<img class="h-12" src="{{ $row->getFirstMediaUrl('logo', 'thumb') }}" alt="{{ $row->name }}"> <img class="h-24" src="{{ $row->getFirstMediaUrl('logo', 'thumb') }}" alt="{{ $row->name }}">
<div> <div>
{{ $row->name }} {{ $row->name }}
</div> </div>

View File

@@ -72,8 +72,8 @@
{{--<img class="mx-auto h-32 w-32 object-contain flex-shrink-0 rounded" {{--<img class="mx-auto h-32 w-32 object-contain flex-shrink-0 rounded"
src="{{ $meetupEvent->meetup->getFirstMediaUrl('logo') }}" src="{{ $meetupEvent->meetup->getFirstMediaUrl('logo') }}"
alt="{{ $meetupEvent->meetup->name }}">--}} alt="{{ $meetupEvent->meetup->name }}">--}}
<h3 class="mt-1 text-xl font-medium text-gray-900 truncate">{{ $meetupEvent->start->asDate() }}</h3> <h3 class="mt-1 text-xl font-medium text-gray-900">{{ $meetupEvent->start->asDateTime() }}</h3>
<h3 class="mt-1 text-xl font-medium text-gray-900 truncate">{{ $meetupEvent->location }}</h3> <h3 class="mt-1 text-xl font-medium text-gray-900">{{ $meetupEvent->location }}</h3>
<dl class="mt-1 flex flex-grow flex-col justify-between"> <dl class="mt-1 flex flex-grow flex-col justify-between">
<div x-data="{ active: 2 }" class="mx-auto max-w-3xl w-full space-y-4"> <div x-data="{ active: 2 }" class="mx-auto max-w-3xl w-full space-y-4">
<div x-data="{ <div x-data="{