mobile nav changed

This commit is contained in:
HolgerHatGarKeineNode
2023-02-26 13:16:29 +01:00
parent 9a02b53b1e
commit c9e91703fb
10 changed files with 179 additions and 128 deletions

View File

@@ -32,7 +32,14 @@ class CourseTable extends DataTableComponent
]; ];
}) })
->setColumnSelectStatus(false) ->setColumnSelectStatus(false)
->setPerPage(10); ->setPerPage(10)
->setConfigurableAreas([
'toolbar-left-end' => [
'columns.courses.areas.toolbar-left-end', [
'country' => $this->country,
],
],
]);
} }
public function filters(): array public function filters(): array

View File

@@ -45,7 +45,14 @@ class EventTable extends DataTableComponent
]; ];
}) })
->setColumnSelectStatus(false) ->setColumnSelectStatus(false)
->setPerPage(10); ->setPerPage(10)
->setConfigurableAreas([
'toolbar-left-end' => [
'columns.course-events.areas.toolbar-left-end', [
'country' => $this->country,
],
],
]);
} }
public function filters(): array public function filters(): array

View File

@@ -31,7 +31,14 @@ class VenueTable extends DataTableComponent
]; ];
}) })
->setColumnSelectStatus(false) ->setColumnSelectStatus(false)
->setPerPage(10); ->setPerPage(10)
->setConfigurableAreas([
'toolbar-left-end' => [
'columns.venues.areas.toolbar-left-end', [
'country' => $this->country,
],
],
]);
} }
public function columns(): array public function columns(): array

View File

@@ -784,6 +784,6 @@
"You overwrite your user\\'s public key and then have to log in with the wallet, which you now use to scan or log in.": "", "You overwrite your user\\'s public key and then have to log in with the wallet, which you now use to scan or log in.": "",
":name\\'s Avatar": "", ":name\\'s Avatar": "",
"Manage": "Verwalten", "Manage": "Verwalten",
"Manage content creators": "Verwalte Content Creator", "Manage content creators": "Verwalte Content Creators",
"Lecturers\/Content Creators": "Dozenten\/Content Creator" "Lecturers\/Content Creators": "Dozenten\/Content Creators"
} }

View File

@@ -0,0 +1,6 @@
<div class="w-full mb-4 md:w-auto md:mb-0">
<x-button href="/nova/resources/course-events">
<i class="fa fa-thin fa-plus"></i>
{{ __('Register course date') }}
</x-button>
</div>

View File

@@ -0,0 +1,6 @@
<div class="w-full mb-4 md:w-auto md:mb-0">
<x-button href="/nova/resources/courses">
<i class="fa fa-thin fa-plus"></i>
{{ __('Register course') }}
</x-button>
</div>

View File

@@ -0,0 +1,6 @@
<div class="w-full mb-4 md:w-auto md:mb-0">
<x-button :href="route('venue.form', ['country' => $country, 'venue' => null])">
<i class="fa fa-thin fa-plus"></i>
{{ __('Create venue') }}
</x-button>
</div>

View File

@@ -1,81 +1,87 @@
<div class="container p-4 mx-auto bg-21gray my-2"> <div>
{{-- HEADER --}}
<livewire:frontend.header :country="null"/>
<div class="pb-5 flex flex-row justify-between"> <div class="container p-4 mx-auto bg-21gray my-2">
<h3 class="text-lg font-medium leading-6 text-gray-200">{{ __('Book Case') }}: {{ $bookCase->title }}</h3>
<div class="flex flex-row space-x-2 items-center"> <div class="pb-5 flex flex-row justify-between">
<div> <h3 class="text-lg font-medium leading-6 text-gray-200">{{ __('Book Case') }}: {{ $bookCase->title }}</h3>
@if($orangePill->id) <div class="flex flex-row space-x-2 items-center">
<x-button negative wire:click="deleteMe"> <div>
<i class="fa fa-thin fa-trash"></i> @if($orangePill->id)
{{ __('Delete') }} <x-button negative wire:click="deleteMe">
<i class="fa fa-thin fa-trash"></i>
{{ __('Delete') }}
</x-button>
@endif
</div>
<div>
<x-button :href="$fromUrl">
<i class="fa fa-thin fa-arrow-left"></i>
{{ __('Back') }}
</x-button> </x-button>
@endif </div>
</div>
<div>
<x-button :href="$fromUrl">
<i class="fa fa-thin fa-arrow-left"></i>
{{ __('Back') }}
</x-button>
</div> </div>
</div> </div>
<form class="space-y-8 divide-y divide-gray-700 pb-24">
<div class="space-y-8 divide-y divide-gray-700 sm:space-y-5">
<div class="mt-6 sm:mt-5 space-y-6 sm:space-y-5">
<x-input.group :for="md5('image')" :label="__('Main picture')">
<div class="py-4">
@if ($image)
<div class="text-gray-200">{{ __('Preview') }}:</div>
<img class="h-48 object-contain" src="{{ $image->temporaryUrl() }}">
@endif
@if ($orangePill->getFirstMediaUrl('images'))
<div class="text-gray-200">{{ __('Current picture') }}:</div>
<img class="h-48 object-contain" src="{{ $orangePill->getFirstMediaUrl('images') }}">
@endif
</div>
<input class="text-gray-200" type="file" wire:model="image">
@error('image') <span class="text-red-500">{{ $message }}</span> @enderror
</x-input.group>
<x-input.group :for="md5('orangePill.amount')" :label="__('Amount')">
<x-input
min="1"
type="number"
wire:model.debounce="orangePill.amount"
label="{{ __('Number of books') }}"
placeholder="{{ __('Number of books') }}"
corner-hint="{{ __('How many bitcoin books have you put in?') }}"
/>
</x-input.group>
<x-input.group :for="md5('orangePill.date')" :label="__('Date')">
<x-datetime-picker
label="{{ __('Date') }}"
placeholder="{{ __('Date') }}"
wire:model.defer="orangePill.date"
timezone="UTC"
user-timezone="{{ config('app.user-timezone') }}"
corner-hint="{{ __('When did you put bitcoin books in?') }}"
without-time
display-format="DD.MM.YYYY"
/>
</x-input.group>
<x-input.group :for="md5('orangePill.comment')" :label="__('Comment')">
<x-textarea wire:model.defer="orangePill.comment" label="{{ __('Comment') }}"
placeholder="{{ __('Comment') }}"
corner-hint="{{ __('For example, what books you put in.') }}"/>
</x-input.group>
<x-input.group :for="md5('orangePill.save')" label="">
<x-button primary wire:click="save">
<i class="fa fa-thin fa-save"></i>
{{ __('Save') }}
</x-button>
</x-input.group>
</div>
</div>
</form>
</div> </div>
<form class="space-y-8 divide-y divide-gray-700 pb-24">
<div class="space-y-8 divide-y divide-gray-700 sm:space-y-5">
<div class="mt-6 sm:mt-5 space-y-6 sm:space-y-5">
<x-input.group :for="md5('image')" :label="__('Main picture')">
<div class="py-4">
@if ($image)
<div class="text-gray-200">{{ __('Preview') }}:</div>
<img class="h-48 object-contain" src="{{ $image->temporaryUrl() }}">
@endif
@if ($orangePill->getFirstMediaUrl('images'))
<div class="text-gray-200">{{ __('Current picture') }}:</div>
<img class="h-48 object-contain" src="{{ $orangePill->getFirstMediaUrl('images') }}">
@endif
</div>
<input class="text-gray-200" type="file" wire:model="image">
@error('image') <span class="text-red-500">{{ $message }}</span> @enderror
</x-input.group>
<x-input.group :for="md5('orangePill.amount')" :label="__('Amount')">
<x-input
min="1"
type="number"
wire:model.debounce="orangePill.amount"
label="{{ __('Number of books') }}"
placeholder="{{ __('Number of books') }}"
corner-hint="{{ __('How many bitcoin books have you put in?') }}"
/>
</x-input.group>
<x-input.group :for="md5('orangePill.date')" :label="__('Date')">
<x-datetime-picker
label="{{ __('Date') }}"
placeholder="{{ __('Date') }}"
wire:model.defer="orangePill.date"
timezone="UTC"
user-timezone="{{ config('app.user-timezone') }}"
corner-hint="{{ __('When did you put bitcoin books in?') }}"
without-time
display-format="DD.MM.YYYY"
/>
</x-input.group>
<x-input.group :for="md5('orangePill.comment')" :label="__('Comment')">
<x-textarea wire:model.defer="orangePill.comment" label="{{ __('Comment') }}" placeholder="{{ __('Comment') }}"
corner-hint="{{ __('For example, what books you put in.') }}"/>
</x-input.group>
<x-input.group :for="md5('orangePill.save')" label="">
<x-button primary wire:click="save">
<i class="fa fa-thin fa-save"></i>
{{ __('Save') }}
</x-button>
</x-input.group>
</div>
</div>
</form>
</div> </div>

View File

@@ -1,66 +1,70 @@
<div class="container p-4 mx-auto bg-21gray my-2"> <div>
{{-- HEADER --}}
<livewire:frontend.header :country="null"/>
<div class="container p-4 mx-auto bg-21gray my-2">
<div class="pb-5 flex flex-row justify-between"> <div class="pb-5 flex flex-row justify-between">
<h3 class="text-lg font-medium leading-6 text-gray-200">{{ __('City') }}</h3> <h3 class="text-lg font-medium leading-6 text-gray-200">{{ __('City') }}</h3>
<div class="flex flex-row space-x-2 items-center"> <div class="flex flex-row space-x-2 items-center">
<div> <div>
<x-button :href="$fromUrl"> <x-button :href="$fromUrl">
<i class="fa fa-thin fa-arrow-left"></i> <i class="fa fa-thin fa-arrow-left"></i>
{{ __('Back') }} {{ __('Back') }}
</x-button> </x-button>
</div>
</div> </div>
</div> </div>
</div>
<form class="space-y-8 divide-y divide-gray-700 pb-24"> <form class="space-y-8 divide-y divide-gray-700 pb-24">
<div class="space-y-8 divide-y divide-gray-700 sm:space-y-5"> <div class="space-y-8 divide-y divide-gray-700 sm:space-y-5">
<div class="mt-6 sm:mt-5 space-y-6 sm:space-y-5"> <div class="mt-6 sm:mt-5 space-y-6 sm:space-y-5">
<x-input.group :for="md5('city.country_id')" :label="__('Country')"> <x-input.group :for="md5('city.country_id')" :label="__('Country')">
<x-select <x-select
:clearable="false" :clearable="false"
wire:model="city.country_id" wire:model="city.country_id"
:searchable="true" :searchable="true"
:async-data="[ :async-data="[
'api' => route('api.countries.index'), 'api' => route('api.countries.index'),
'method' => 'GET', // default is GET 'method' => 'GET', // default is GET
]" ]"
:template="[ :template="[
'name' => 'user-option', 'name' => 'user-option',
'config' => ['src' => 'flag'] 'config' => ['src' => 'flag']
]" ]"
option-label="name" option-label="name"
option-value="id" option-value="id"
/> />
</x-input.group> </x-input.group>
<x-input.group :for="md5('city.name')" :label="__('Name')"> <x-input.group :for="md5('city.name')" :label="__('Name')">
<x-input autocomplete="off" wire:model.debounce="city.name" <x-input autocomplete="off" wire:model.debounce="city.name"
:placeholder="__('Name')"/> :placeholder="__('Name')"/>
</x-input.group> </x-input.group>
<x-input.group :for="md5('city.longitude')" :label="__('Longitude')"> <x-input.group :for="md5('city.longitude')" :label="__('Longitude')">
<x-input autocomplete="off" wire:model.debounce="city.longitude" <x-input autocomplete="off" wire:model.debounce="city.longitude"
:placeholder="__('Longitude')"/> :placeholder="__('Longitude')"/>
<div class="text-amber-500 text-xs py-2"><a target="_blank" href="https://www.latlong.net/">https://www.latlong.net/</a> <div class="text-amber-500 text-xs py-2"><a target="_blank" href="https://www.latlong.net/">https://www.latlong.net/</a>
</div> </div>
</x-input.group> </x-input.group>
<x-input.group :for="md5('city.latitude')" :label="__('Latitude')"> <x-input.group :for="md5('city.latitude')" :label="__('Latitude')">
<x-input autocomplete="off" wire:model.debounce="city.latitude" <x-input autocomplete="off" wire:model.debounce="city.latitude"
:placeholder="__('Latitude')"/> :placeholder="__('Latitude')"/>
<div class="text-amber-500 text-xs py-2"><a target="_blank" href="https://www.latlong.net/">https://www.latlong.net/</a> <div class="text-amber-500 text-xs py-2"><a target="_blank" href="https://www.latlong.net/">https://www.latlong.net/</a>
</div> </div>
</x-input.group> </x-input.group>
<x-input.group :for="md5('meetupEvent.link')" label=""> <x-input.group :for="md5('meetupEvent.link')" label="">
<x-button primary wire:click="save"> <x-button primary wire:click="save">
<i class="fa fa-thin fa-save"></i> <i class="fa fa-thin fa-save"></i>
{{ __('Save') }} {{ __('Save') }}
</x-button> </x-button>
</x-input.group> </x-input.group>
</div>
</div> </div>
</div> </form>
</form> </div>
</div> </div>

View File

@@ -95,6 +95,8 @@
x-show="open" style="display: none;"> x-show="open" style="display: none;">
<a href="{{ route('article.overview') }}" <a href="{{ route('article.overview') }}"
class="block rounded-lg py-2 pl-6 pr-3 text-sm font-semibold leading-7 text-gray-900 hover:bg-gray-50">{{ __('News Article') }}</a> class="block rounded-lg py-2 pl-6 pr-3 text-sm font-semibold leading-7 text-gray-900 hover:bg-gray-50">{{ __('News Article') }}</a>
<a href="{{ route('school.table.lecturer', ['country' => $country]) }}"
class="block rounded-lg py-2 pl-6 pr-3 text-sm font-semibold leading-7 text-gray-900 hover:bg-gray-50">{{ __('Manage content creators') }}</a>
</div> </div>
</div> </div>