mirror of
https://github.com/Einundzwanzig-Podcast/einundzwanzig-portal.git
synced 2025-12-11 06:46:47 +00:00
create content creator button changed
This commit is contained in:
@@ -32,7 +32,14 @@ class LecturerTable extends DataTableComponent
|
||||
];
|
||||
})
|
||||
->setColumnSelectStatus(false)
|
||||
->setPerPage(10);
|
||||
->setPerPage(10)
|
||||
->setConfigurableAreas([
|
||||
'toolbar-left-end' => [
|
||||
'columns.lectures.areas.toolbar-left-end', [
|
||||
'country' => $this->country,
|
||||
],
|
||||
],
|
||||
]);
|
||||
}
|
||||
|
||||
public function columns(): array
|
||||
|
||||
@@ -44,4 +44,16 @@
|
||||
{{ __('Show landing page') }}
|
||||
</x-button>
|
||||
</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>
|
||||
|
||||
@@ -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>
|
||||
@@ -14,12 +14,6 @@
|
||||
<div class="hidden space-x-8 sm:-my-px sm:ml-10 sm:flex sm:items-center">
|
||||
|
||||
@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>
|
||||
<x-button xs amber href="/nova/resources/courses" target="_blank">
|
||||
<i class="fa fa-thin fa-plus"></i>
|
||||
|
||||
Reference in New Issue
Block a user