fix minor bugs
This commit is contained in:
@@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
namespace App\Filament\Resources\DepartmentResource\RelationManagers;
|
namespace App\Filament\Resources\DepartmentResource\RelationManagers;
|
||||||
|
|
||||||
|
use App\Services\App\Cache\DepartmentCacheService;
|
||||||
use App\Ship\Enums\Education\EducationalProgramStatus;
|
use App\Ship\Enums\Education\EducationalProgramStatus;
|
||||||
use Filament\Forms;
|
use Filament\Forms;
|
||||||
use Filament\Forms\Form;
|
use Filament\Forms\Form;
|
||||||
@@ -72,6 +73,9 @@ class ProgramsRelationManager extends RelationManager
|
|||||||
->searchable()
|
->searchable()
|
||||||
->columnSpanFull()
|
->columnSpanFull()
|
||||||
)
|
)
|
||||||
|
->before(function () {
|
||||||
|
app(DepartmentCacheService::class)->clearAllCacheByModel();
|
||||||
|
})
|
||||||
])
|
])
|
||||||
->actions([
|
->actions([
|
||||||
|
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
namespace App\Filament\Resources\DepartmentResource\RelationManagers;
|
namespace App\Filament\Resources\DepartmentResource\RelationManagers;
|
||||||
|
|
||||||
|
use App\Services\App\Cache\DepartmentCacheService;
|
||||||
use Filament\Forms;
|
use Filament\Forms;
|
||||||
use Filament\Forms\Form;
|
use Filament\Forms\Form;
|
||||||
use Filament\Resources\RelationManagers\RelationManager;
|
use Filament\Resources\RelationManagers\RelationManager;
|
||||||
@@ -136,6 +137,9 @@ class TeachersRelationManager extends RelationManager
|
|||||||
->columns(1),
|
->columns(1),
|
||||||
])
|
])
|
||||||
->modalSubmitActionLabel('Добавить')
|
->modalSubmitActionLabel('Добавить')
|
||||||
|
->before(function () {
|
||||||
|
app(DepartmentCacheService::class)->clearAllCacheByModel();
|
||||||
|
})
|
||||||
])
|
])
|
||||||
->actions([
|
->actions([
|
||||||
Tables\Actions\EditAction::make()
|
Tables\Actions\EditAction::make()
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
namespace App\Filament\Resources\DepartmentResource\RelationManagers;
|
namespace App\Filament\Resources\DepartmentResource\RelationManagers;
|
||||||
|
|
||||||
|
use App\Services\App\Cache\DepartmentCacheService;
|
||||||
use Filament\Forms;
|
use Filament\Forms;
|
||||||
use Filament\Forms\Form;
|
use Filament\Forms\Form;
|
||||||
use Filament\Resources\RelationManagers\RelationManager;
|
use Filament\Resources\RelationManagers\RelationManager;
|
||||||
@@ -136,6 +137,9 @@ class WorkersRelationManager extends RelationManager
|
|||||||
->columns(2),
|
->columns(2),
|
||||||
])
|
])
|
||||||
->modalSubmitActionLabel('Добавить')
|
->modalSubmitActionLabel('Добавить')
|
||||||
|
->before(function () {
|
||||||
|
app(DepartmentCacheService::class)->clearAllCacheByModel();
|
||||||
|
})
|
||||||
])
|
])
|
||||||
->actions([
|
->actions([
|
||||||
Tables\Actions\EditAction::make()
|
Tables\Actions\EditAction::make()
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
namespace App\Filament\Resources\DivisionResource\RelationManagers;
|
namespace App\Filament\Resources\DivisionResource\RelationManagers;
|
||||||
|
|
||||||
|
use App\Services\App\Cache\DivisionCacheService;
|
||||||
use Filament\Forms;
|
use Filament\Forms;
|
||||||
use Filament\Forms\Form;
|
use Filament\Forms\Form;
|
||||||
use Filament\Resources\RelationManagers\RelationManager;
|
use Filament\Resources\RelationManagers\RelationManager;
|
||||||
@@ -145,7 +146,11 @@ class WorkersRelationManager extends RelationManager
|
|||||||
->helperText('Номер кабинета в подразделении'),
|
->helperText('Номер кабинета в подразделении'),
|
||||||
])
|
])
|
||||||
->columns(2),
|
->columns(2),
|
||||||
]),
|
])
|
||||||
|
->before(function () {
|
||||||
|
app(DivisionCacheService::class)->clearAllCacheByModel();
|
||||||
|
})
|
||||||
|
|
||||||
])
|
])
|
||||||
->actions([
|
->actions([
|
||||||
Tables\Actions\EditAction::make()
|
Tables\Actions\EditAction::make()
|
||||||
|
|||||||
@@ -158,7 +158,7 @@ class FacultyResource extends Resource
|
|||||||
{
|
{
|
||||||
return [
|
return [
|
||||||
WorkersRelationManager::class,
|
WorkersRelationManager::class,
|
||||||
DepartmentsRelationManager::class,
|
// DepartmentsRelationManager::class,
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
namespace App\Filament\Resources\FacultyResource\RelationManagers;
|
namespace App\Filament\Resources\FacultyResource\RelationManagers;
|
||||||
|
|
||||||
|
use App\Services\App\Cache\FacultyCacheService;
|
||||||
use Filament\Forms;
|
use Filament\Forms;
|
||||||
use Filament\Forms\Form;
|
use Filament\Forms\Form;
|
||||||
use Filament\Resources\RelationManagers\RelationManager;
|
use Filament\Resources\RelationManagers\RelationManager;
|
||||||
@@ -135,6 +136,9 @@ class WorkersRelationManager extends RelationManager
|
|||||||
->modalHeading('Добавить сотрудника')
|
->modalHeading('Добавить сотрудника')
|
||||||
->modalSubmitActionLabel('Добавить')
|
->modalSubmitActionLabel('Добавить')
|
||||||
->modalButton('Добавить')
|
->modalButton('Добавить')
|
||||||
|
->before(function () {
|
||||||
|
app(FacultyCacheService::class)->clearAllCacheByModel();
|
||||||
|
})
|
||||||
])
|
])
|
||||||
->actions([
|
->actions([
|
||||||
Tables\Actions\EditAction::make()
|
Tables\Actions\EditAction::make()
|
||||||
|
|||||||
@@ -73,7 +73,7 @@
|
|||||||
<div class="space-y-5 md:space-y-5">
|
<div class="space-y-5 md:space-y-5">
|
||||||
|
|
||||||
<div class="flex justify-between items-center mb-6">
|
<div class="flex justify-between items-center mb-6">
|
||||||
<div class="flex w-full sm:items-center gap-x-5 sm:gap-x-3">
|
<div class="flex w-full sm:items-center gap-x-5 sm:gap-x-3 truncate">
|
||||||
<div class="grow">
|
<div class="grow">
|
||||||
<div class="grid sm:flex sm:justify-between sm:items-center gap-2">
|
<div class="grid sm:flex sm:justify-between sm:items-center gap-2">
|
||||||
<DepartmentItemBreadcrumbs :faculty="department.data.faculty" :department-title="department.data.title" />
|
<DepartmentItemBreadcrumbs :faculty="department.data.faculty" :department-title="department.data.title" />
|
||||||
|
|||||||
@@ -57,7 +57,7 @@
|
|||||||
<main class="w-full min-w-0 mt-1 max-w-6xl px-1 md:px-6" style="">
|
<main class="w-full min-w-0 mt-1 max-w-6xl px-1 md:px-6" style="">
|
||||||
<div class="space-y-5 md:space-y-5">
|
<div class="space-y-5 md:space-y-5">
|
||||||
<div class="flex justify-between items-center mb-6">
|
<div class="flex justify-between items-center mb-6">
|
||||||
<div class="flex w-full sm:items-center gap-x-5 sm:gap-x-3">
|
<div class="flex w-full sm:items-center gap-x-5 sm:gap-x-3 truncate">
|
||||||
<div class="grow">
|
<div class="grow">
|
||||||
<div class="grid sm:flex sm:justify-between sm:items-center gap-2">
|
<div class="grid sm:flex sm:justify-between sm:items-center gap-2">
|
||||||
<DivisionItemBreadcrumbs :division-title="division.data.title" />
|
<DivisionItemBreadcrumbs :division-title="division.data.title" />
|
||||||
|
|||||||
@@ -62,7 +62,7 @@
|
|||||||
<article class="w-full min-w-0 mt-1 max-w-6xl px-1 md:px-6" style="">
|
<article class="w-full min-w-0 mt-1 max-w-6xl px-1 md:px-6" style="">
|
||||||
<div class="space-y-5 md:space-y-5">
|
<div class="space-y-5 md:space-y-5">
|
||||||
<div class="flex justify-between items-center mb-6">
|
<div class="flex justify-between items-center mb-6">
|
||||||
<div class="flex w-full sm:items-center gap-x-5 sm:gap-x-3">
|
<div class="flex w-full sm:items-center gap-x-5 sm:gap-x-3 truncate">
|
||||||
<div class="grow">
|
<div class="grow">
|
||||||
<div class="grid sm:flex sm:justify-between sm:items-center gap-2">
|
<div class="grid sm:flex sm:justify-between sm:items-center gap-2">
|
||||||
<FacultyItemBreadcrumbs :faculty-title="faculty.data.shortTitle" />
|
<FacultyItemBreadcrumbs :faculty-title="faculty.data.shortTitle" />
|
||||||
|
|||||||
+1
-1
@@ -90,7 +90,7 @@
|
|||||||
<path d="M5 1L10.6869 7.16086C10.8637 7.35239 10.8637 7.64761 10.6869 7.83914L5 14"
|
<path d="M5 1L10.6869 7.16086C10.8637 7.35239 10.8637 7.64761 10.6869 7.83914L5 14"
|
||||||
stroke="currentColor" stroke-width="2" stroke-linecap="round"/>
|
stroke="currentColor" stroke-width="2" stroke-linecap="round"/>
|
||||||
</svg>
|
</svg>
|
||||||
{{ faculty.title }}
|
{{ faculty.abbreviation }}
|
||||||
</Link>
|
</Link>
|
||||||
</li>
|
</li>
|
||||||
<li class="text-sm">
|
<li class="text-sm">
|
||||||
|
|||||||
Reference in New Issue
Block a user