fix minor bugs
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
|
||||
namespace App\Filament\Resources\DepartmentResource\RelationManagers;
|
||||
|
||||
use App\Services\App\Cache\DepartmentCacheService;
|
||||
use App\Ship\Enums\Education\EducationalProgramStatus;
|
||||
use Filament\Forms;
|
||||
use Filament\Forms\Form;
|
||||
@@ -72,6 +73,9 @@ class ProgramsRelationManager extends RelationManager
|
||||
->searchable()
|
||||
->columnSpanFull()
|
||||
)
|
||||
->before(function () {
|
||||
app(DepartmentCacheService::class)->clearAllCacheByModel();
|
||||
})
|
||||
])
|
||||
->actions([
|
||||
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
|
||||
namespace App\Filament\Resources\DepartmentResource\RelationManagers;
|
||||
|
||||
use App\Services\App\Cache\DepartmentCacheService;
|
||||
use Filament\Forms;
|
||||
use Filament\Forms\Form;
|
||||
use Filament\Resources\RelationManagers\RelationManager;
|
||||
@@ -136,6 +137,9 @@ class TeachersRelationManager extends RelationManager
|
||||
->columns(1),
|
||||
])
|
||||
->modalSubmitActionLabel('Добавить')
|
||||
->before(function () {
|
||||
app(DepartmentCacheService::class)->clearAllCacheByModel();
|
||||
})
|
||||
])
|
||||
->actions([
|
||||
Tables\Actions\EditAction::make()
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
|
||||
namespace App\Filament\Resources\DepartmentResource\RelationManagers;
|
||||
|
||||
use App\Services\App\Cache\DepartmentCacheService;
|
||||
use Filament\Forms;
|
||||
use Filament\Forms\Form;
|
||||
use Filament\Resources\RelationManagers\RelationManager;
|
||||
@@ -136,6 +137,9 @@ class WorkersRelationManager extends RelationManager
|
||||
->columns(2),
|
||||
])
|
||||
->modalSubmitActionLabel('Добавить')
|
||||
->before(function () {
|
||||
app(DepartmentCacheService::class)->clearAllCacheByModel();
|
||||
})
|
||||
])
|
||||
->actions([
|
||||
Tables\Actions\EditAction::make()
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
|
||||
namespace App\Filament\Resources\DivisionResource\RelationManagers;
|
||||
|
||||
use App\Services\App\Cache\DivisionCacheService;
|
||||
use Filament\Forms;
|
||||
use Filament\Forms\Form;
|
||||
use Filament\Resources\RelationManagers\RelationManager;
|
||||
@@ -145,7 +146,11 @@ class WorkersRelationManager extends RelationManager
|
||||
->helperText('Номер кабинета в подразделении'),
|
||||
])
|
||||
->columns(2),
|
||||
]),
|
||||
])
|
||||
->before(function () {
|
||||
app(DivisionCacheService::class)->clearAllCacheByModel();
|
||||
})
|
||||
|
||||
])
|
||||
->actions([
|
||||
Tables\Actions\EditAction::make()
|
||||
|
||||
@@ -158,7 +158,7 @@ class FacultyResource extends Resource
|
||||
{
|
||||
return [
|
||||
WorkersRelationManager::class,
|
||||
DepartmentsRelationManager::class,
|
||||
// DepartmentsRelationManager::class,
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
|
||||
namespace App\Filament\Resources\FacultyResource\RelationManagers;
|
||||
|
||||
use App\Services\App\Cache\FacultyCacheService;
|
||||
use Filament\Forms;
|
||||
use Filament\Forms\Form;
|
||||
use Filament\Resources\RelationManagers\RelationManager;
|
||||
@@ -135,6 +136,9 @@ class WorkersRelationManager extends RelationManager
|
||||
->modalHeading('Добавить сотрудника')
|
||||
->modalSubmitActionLabel('Добавить')
|
||||
->modalButton('Добавить')
|
||||
->before(function () {
|
||||
app(FacultyCacheService::class)->clearAllCacheByModel();
|
||||
})
|
||||
])
|
||||
->actions([
|
||||
Tables\Actions\EditAction::make()
|
||||
|
||||
@@ -73,7 +73,7 @@
|
||||
<div class="space-y-5 md:space-y-5">
|
||||
|
||||
<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="grid sm:flex sm:justify-between sm:items-center gap-2">
|
||||
<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="">
|
||||
<div class="space-y-5 md:space-y-5">
|
||||
<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="grid sm:flex sm:justify-between sm:items-center gap-2">
|
||||
<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="">
|
||||
<div class="space-y-5 md:space-y-5">
|
||||
<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="grid sm:flex sm:justify-between sm:items-center gap-2">
|
||||
<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"
|
||||
stroke="currentColor" stroke-width="2" stroke-linecap="round"/>
|
||||
</svg>
|
||||
{{ faculty.title }}
|
||||
{{ faculty.abbreviation }}
|
||||
</Link>
|
||||
</li>
|
||||
<li class="text-sm">
|
||||
|
||||
Reference in New Issue
Block a user