Race Course Management
URL: <base-url>/backend/hrc#/racecoursemanagement
Directory: VaahCms/Modules/HRC/Vue/pages/racecoursemanagement
Controller: VaahCms/Modules/HRC/Http/Controllers/Backend/RaceCourseManagementController.php
Model: VaahCms/Modules/HRC/Models/EqMap.php
Store: VaahCms/Modules/HRC/Vue/store/modules/store-racecoursemanagement.jsDescription
This page is used by the admins to Create, Update, View or Delete Race Courses. This page also provides an intuitive way to define the racecourse using Google Maps, define checkpoints, define markers and add and update pointers for each checkpoint.

Purpose
- Show the list of all RaceCourses
- Provide search functionalities and filter for quick access.
- View RaceCourse details
- Set Geo Coordinates for racecourses
- Set or update checkpoints in the racecourse visually using Google Maps
- Set or update pointer mechanism for identifying checkpoint lines
- Update racecourse details
- Delete or trash racecourse
How it works
- The main component of the page is
List.vuethat contains the header containing title andCreatebutton. List.vuealso rendersLargeListView.vuefrompartialsfolder that shows the list of all items it is in full width and switches toSmallListView.vuewhen it is not in full width.View.vuecomponent displays the details of the recordView.vuecomponent also calls theGoogleMapMarkerscomponent fromhrcvueto show the racecouse in GoogleMaps with the checkpoint markers.Create.vueis called when theCreatebutton the top right part ofList.vueis clicked. This displays a form to create a new record. This component also has a theGoogleMapMarkeras child component in editing mode.Edit.vueis called when theEditbutton the top right part ofView.vueis clicked or if edit action is clicked formList.vue. This displays a form to create a new record. This component also has a theGoogleMapMarkeras child component in editing mode.
Assumptions
- The HRC module is Activated and all migrations and seeds have been run.
- The ajax requests are functioning correctly. Including the initial assets request
- Google Map API keys are correct and working
Acceptance Criteria
- The list components top left should have heading "Rider Profiles" with the no of items mentioned in brackets.
- The list component's should have "create" button
- The Filters should work in real time
- Each item in the list should have view and edit action buttons
- The Create and edit form should have labels and placeholder.
- All dropdowns and select boxes must work
- A confirmation prompt should come up any time a delete or a trash action is performed.
- Google Maps should load correctly with the all the flag markers and pointers
Table of Contents