feat: implement admin blocks management feature
- Added AdminBlocksManagement component for managing court blocks. - Implemented functionality to create, edit, and delete blocks. - Integrated fetching of courts and blocks from the API. - Added validation for block creation and editing forms. - Enhanced UI with responsive design for mobile and desktop views. - Created database migration for court_blocks table and updated users table with theme_preference.
This commit is contained in:
@@ -85,6 +85,11 @@ export const ACTIONS = {
|
||||
TIME_SLOT_UPDATE: 'update_time_slot',
|
||||
TIME_SLOT_DELETE: 'delete_time_slot',
|
||||
|
||||
// Court block actions
|
||||
BLOCK_CREATE: 'create_block',
|
||||
BLOCK_UPDATE: 'update_block',
|
||||
BLOCK_DELETE: 'delete_block',
|
||||
|
||||
// System actions
|
||||
SYSTEM_START: 'system_start',
|
||||
SYSTEM_ERROR: 'system_error',
|
||||
@@ -97,5 +102,6 @@ export const ENTITY_TYPES = {
|
||||
ANNOUNCEMENT: 'announcement',
|
||||
SETTINGS: 'settings',
|
||||
TIME_SLOT: 'time_slot',
|
||||
COURT_BLOCK: 'court_block',
|
||||
SYSTEM: 'system',
|
||||
} as const;
|
||||
|
||||
Reference in New Issue
Block a user