refactor: remove recordTitleAttribute from various Filament resources for consistency
This commit is contained in:
parent
ae85231356
commit
586f8844a4
@ -49,8 +49,6 @@ class Company extends Page implements HasForms
|
||||
|
||||
protected static ?int $navigationSort = 2;
|
||||
|
||||
protected static ?string $recordTitleAttribute = 'name';
|
||||
|
||||
protected static ?string $slug = 'manage/company';
|
||||
|
||||
protected static ?string $title = 'Perusahaan';
|
||||
|
||||
@ -56,8 +56,6 @@ class Media extends Page implements HasForms
|
||||
|
||||
protected static ?int $navigationSort = 3;
|
||||
|
||||
protected static ?string $recordTitleAttribute = 'name';
|
||||
|
||||
public bool $restricted = false;
|
||||
|
||||
public bool $isVerificationStage = false;
|
||||
|
||||
@ -39,8 +39,6 @@ class ContactResource extends Resource
|
||||
|
||||
protected static ?int $navigationSort = 9;
|
||||
|
||||
protected static ?string $recordTitleAttribute = 'subject';
|
||||
|
||||
protected static ?string $slug = 'manage/contacts';
|
||||
|
||||
public static function getNavigationBadge(): ?string
|
||||
|
||||
@ -43,8 +43,6 @@ class CooperationResource extends Resource
|
||||
|
||||
protected static ?int $navigationSort = 7;
|
||||
|
||||
protected static ?string $recordTitleAttribute = 'title';
|
||||
|
||||
protected static ?string $slug = 'manage/cooperations';
|
||||
|
||||
public static function getNavigationBadge(): ?string
|
||||
|
||||
@ -21,8 +21,6 @@
|
||||
|
||||
class CooperationMediaRelationManager extends RelationManager
|
||||
{
|
||||
protected static ?string $recordTitleAttribute = 'partnerMedia.name';
|
||||
|
||||
protected static string $relationship = 'cooperationMedia';
|
||||
|
||||
protected static ?string $title = 'Media';
|
||||
|
||||
@ -17,8 +17,6 @@
|
||||
|
||||
class CooperationPaymentRelationManager extends RelationManager
|
||||
{
|
||||
protected static ?string $recordTitleAttribute = 'description';
|
||||
|
||||
protected static string $relationship = 'payments';
|
||||
|
||||
protected static ?string $title = 'Pembayaran';
|
||||
|
||||
@ -25,8 +25,6 @@
|
||||
|
||||
class CooperationProposalRelationManager extends RelationManager
|
||||
{
|
||||
protected static ?string $recordTitleAttribute = 'e_catalog';
|
||||
|
||||
protected static string $relationship = 'proposal';
|
||||
|
||||
protected static ?string $title = 'Proposal';
|
||||
|
||||
@ -42,8 +42,6 @@ class DataChangesResource extends Resource
|
||||
|
||||
protected static ?int $navigationSort = 8;
|
||||
|
||||
protected static ?string $recordTitleAttribute = 'change_reason';
|
||||
|
||||
protected static ?string $slug = 'manage/data-changes';
|
||||
|
||||
public static function getNavigationBadge(): ?string
|
||||
|
||||
@ -27,8 +27,6 @@ class JournalistResource extends Resource
|
||||
|
||||
protected static ?int $navigationSort = 4;
|
||||
|
||||
protected static ?string $recordTitleAttribute = 'name';
|
||||
|
||||
protected static ?string $slug = 'manage/journalists';
|
||||
|
||||
public static function form(Schema $schema): Schema
|
||||
|
||||
@ -27,8 +27,6 @@ class PartnerResource extends Resource
|
||||
|
||||
protected static ?int $navigationSort = 1;
|
||||
|
||||
protected static ?string $recordTitleAttribute = 'name';
|
||||
|
||||
protected static ?string $slug = 'manage/partners';
|
||||
|
||||
public static function infolist(Schema $schema): Schema
|
||||
|
||||
@ -25,8 +25,6 @@ class CategoryResource extends Resource
|
||||
|
||||
protected static ?int $navigationSort = 5;
|
||||
|
||||
protected static ?string $recordTitleAttribute = 'name';
|
||||
|
||||
protected static ?string $slug = 'master/categories';
|
||||
|
||||
public static function form(Schema $schema): Schema
|
||||
|
||||
@ -25,8 +25,6 @@ class ClassificationResource extends Resource
|
||||
|
||||
protected static ?int $navigationSort = 1;
|
||||
|
||||
protected static ?string $recordTitleAttribute = 'name';
|
||||
|
||||
protected static ?string $slug = 'master/classifications';
|
||||
|
||||
public static function form(Schema $schema): Schema
|
||||
|
||||
@ -25,8 +25,6 @@ class DepartmentResource extends Resource
|
||||
|
||||
protected static ?int $navigationSort = 6;
|
||||
|
||||
protected static ?string $recordTitleAttribute = 'name';
|
||||
|
||||
protected static ?string $slug = 'master/departments';
|
||||
|
||||
public static function form(Schema $schema): Schema
|
||||
|
||||
@ -25,8 +25,6 @@ class LocationResource extends Resource
|
||||
|
||||
protected static ?int $navigationSort = 3;
|
||||
|
||||
protected static ?string $recordTitleAttribute = 'name';
|
||||
|
||||
protected static ?string $slug = 'master/locations';
|
||||
|
||||
public static function form(Schema $schema): Schema
|
||||
|
||||
@ -25,8 +25,6 @@ class SubClassificationResource extends Resource
|
||||
|
||||
protected static ?int $navigationSort = 2;
|
||||
|
||||
protected static ?string $recordTitleAttribute = 'name';
|
||||
|
||||
protected static ?string $slug = 'master/sub-classifications';
|
||||
|
||||
public static function form(Schema $schema): Schema
|
||||
|
||||
@ -25,8 +25,6 @@ class SubLocationResource extends Resource
|
||||
|
||||
protected static ?int $navigationSort = 4;
|
||||
|
||||
protected static ?string $recordTitleAttribute = 'name';
|
||||
|
||||
protected static ?string $slug = 'master/sub-locations';
|
||||
|
||||
public static function form(Schema $schema): Schema
|
||||
|
||||
@ -25,8 +25,6 @@ class ThemeResource extends Resource
|
||||
|
||||
protected static ?int $navigationSort = 7;
|
||||
|
||||
protected static ?string $recordTitleAttribute = 'name';
|
||||
|
||||
protected static ?string $slug = 'master/themes';
|
||||
|
||||
public static function form(Schema $schema): Schema
|
||||
|
||||
@ -26,8 +26,6 @@ class UserResource extends Resource
|
||||
|
||||
protected static ?int $navigationSort = 8;
|
||||
|
||||
protected static ?string $recordTitleAttribute = 'name';
|
||||
|
||||
protected static ?string $slug = 'master/users';
|
||||
|
||||
public static function form(Schema $schema): Schema
|
||||
|
||||
@ -27,8 +27,6 @@ class ContentRecapResource extends Resource
|
||||
|
||||
protected static ?int $navigationSort = 3;
|
||||
|
||||
protected static ?string $recordTitleAttribute = 'title';
|
||||
|
||||
protected static ?string $slug = 'monitoring/content-recaps';
|
||||
|
||||
public static function form(Schema $schema): Schema
|
||||
|
||||
@ -27,8 +27,6 @@ class IssueManagementResource extends Resource
|
||||
|
||||
protected static ?int $navigationSort = 2;
|
||||
|
||||
protected static ?string $recordTitleAttribute = 'mediaMonitoring.title';
|
||||
|
||||
protected static ?string $slug = 'monitoring/issue-managements';
|
||||
|
||||
public static function form(Schema $schema): Schema
|
||||
|
||||
@ -28,8 +28,6 @@ class MediaMonitoringResource extends Resource
|
||||
|
||||
protected static ?int $navigationSort = 1;
|
||||
|
||||
protected static ?string $recordTitleAttribute = 'code';
|
||||
|
||||
protected static ?string $slug = 'monitoring/media-monitorings';
|
||||
|
||||
public static function form(Schema $schema): Schema
|
||||
|
||||
@ -25,8 +25,6 @@ class AnnouncementResource extends Resource
|
||||
|
||||
protected static ?int $navigationSort = 2;
|
||||
|
||||
protected static ?string $recordTitleAttribute = 'title';
|
||||
|
||||
protected static ?string $slug = 'publication/announcements';
|
||||
|
||||
public static function form(Schema $schema): Schema
|
||||
|
||||
@ -27,8 +27,6 @@ class NewsResource extends Resource
|
||||
|
||||
protected static ?int $navigationSort = 1;
|
||||
|
||||
protected static ?string $recordTitleAttribute = 'title';
|
||||
|
||||
protected static ?string $slug = 'publication/news';
|
||||
|
||||
public static function form(Schema $schema): Schema
|
||||
|
||||
Loading…
Reference in New Issue
Block a user