create content creator button changed

This commit is contained in:
HolgerHatGarKeineNode
2023-02-21 20:33:33 +01:00
parent a387f579aa
commit 83e31dbc4c
4 changed files with 26 additions and 7 deletions

View File

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

View File

@@ -44,4 +44,16 @@
{{ __('Show landing page') }} {{ __('Show landing page') }}
</x-button> </x-button>
</div> </div>
<div>
@if($row->created_by === auth()->id())
<x-button
:href="route('contentCreator.form', ['country' => $country, 'lecturer' => $row->id])"
xs
amber
>
<i class="fa fa-thin fa-edit mr-2"></i>
{{ __('Edit') }}
</x-button>
@endif
</div>
</div> </div>

View File

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

View File

@@ -14,12 +14,6 @@
<div class="hidden space-x-8 sm:-my-px sm:ml-10 sm:flex sm:items-center"> <div class="hidden space-x-8 sm:-my-px sm:ml-10 sm:flex sm:items-center">
@if(str(request()->route()->getName())->contains('school.')) @if(str(request()->route()->getName())->contains('school.'))
<div>
<x-button xs amber href="/nova/resources/lecturers" target="_blank">
<i class="fa fa-thin fa-plus"></i>
{{ __('Register lecturer') }}
</x-button>
</div>
<div> <div>
<x-button xs amber href="/nova/resources/courses" target="_blank"> <x-button xs amber href="/nova/resources/courses" target="_blank">
<i class="fa fa-thin fa-plus"></i> <i class="fa fa-thin fa-plus"></i>