refactor: remove record title attributes from various resource classes for cleaner code structure
This commit is contained in:
parent
10d90a0297
commit
addc675999
@ -40,8 +40,6 @@ class Index extends Page implements HasActions, HasForms
|
||||
|
||||
protected static ?int $navigationSort = 5;
|
||||
|
||||
protected static ?string $recordTitleAttribute = 'day_of_week';
|
||||
|
||||
protected static ?string $slug = 'information/course-schedules';
|
||||
|
||||
protected string $view = 'filament.pages.information.course-schedule.index';
|
||||
|
||||
@ -58,8 +58,6 @@ public static function getNavigationBadgeColor(): ?string
|
||||
|
||||
protected static ?int $navigationSort = 15;
|
||||
|
||||
protected static ?string $recordTitleAttribute = 'title';
|
||||
|
||||
protected static ?string $slug = 'learning/assignments';
|
||||
|
||||
public static function form(Schema $schema): Schema
|
||||
|
||||
@ -38,8 +38,6 @@ class ListAssignments extends Page
|
||||
|
||||
protected static ?string $title = 'Tugas';
|
||||
|
||||
protected static ?string $recordTitleAttribute = 'title';
|
||||
|
||||
public static function getPagePermission(): string
|
||||
{
|
||||
return 'View:CourseSchedule';
|
||||
|
||||
@ -20,8 +20,6 @@ class AttendanceResource extends Resource
|
||||
|
||||
protected static ?int $navigationSort = 20;
|
||||
|
||||
protected static ?string $recordTitleAttribute = 'date';
|
||||
|
||||
protected static ?string $slug = 'learning/attendances';
|
||||
|
||||
public static function getPages(): array
|
||||
|
||||
@ -25,8 +25,6 @@ class ClassSessionResource extends Resource
|
||||
|
||||
protected static ?int $navigationSort = 5;
|
||||
|
||||
protected static ?string $recordTitleAttribute = 'session_number';
|
||||
|
||||
protected static ?string $slug = 'learning/class-sessions';
|
||||
|
||||
public static function getRelations(): array
|
||||
|
||||
@ -48,8 +48,6 @@ class MaterialResource extends Resource
|
||||
|
||||
protected static ?int $navigationSort = 10;
|
||||
|
||||
protected static ?string $recordTitleAttribute = 'title';
|
||||
|
||||
protected static ?string $slug = 'learning/materials';
|
||||
|
||||
public static function form(Schema $schema): Schema
|
||||
|
||||
@ -37,8 +37,6 @@ class CourseResource extends Resource
|
||||
|
||||
protected static ?int $navigationSort = 10;
|
||||
|
||||
protected static ?string $recordTitleAttribute = 'name';
|
||||
|
||||
protected static ?string $slug = 'master/courses';
|
||||
|
||||
public static function form(Schema $schema): Schema
|
||||
|
||||
@ -26,8 +26,6 @@ class StudentResource extends Resource
|
||||
|
||||
protected static ?int $navigationSort = 5;
|
||||
|
||||
protected static ?string $recordTitleAttribute = 'full_name';
|
||||
|
||||
protected static ?string $slug = 'master/students';
|
||||
|
||||
public static function form(Schema $schema): Schema
|
||||
|
||||
Loading…
Reference in New Issue
Block a user