Right now, when admins are creating shifts, the form contain text boxes where the admin has to input the Driver Id.
This is inconvenient because, the admin either has to memorize witch driver id corresponds to which person, check it beforehand, or if they don't remember while filling out the form, they have to check and potentially lose progress.
It would be much easier to be able to select from a dropdown list that contains all of the active driver ids and their names.
Acceptance Criteria
[ ] When creating shifts, an admin can select the Driver ID and Backup Driver ID from a dropdown containing all of the drivers
Implementation Todos
Frontend:
[ ] Modify ShiftForm.js to use the backend DriversController.java get all endpoint to get a list of all drivers and use it to populate a dropdown.
User Story
Discussion
Right now, when admins are creating shifts, the form contain text boxes where the admin has to input the
Driver Id
.This is inconvenient because, the admin either has to memorize witch driver id corresponds to which person, check it beforehand, or if they don't remember while filling out the form, they have to check and potentially lose progress.
It would be much easier to be able to select from a dropdown list that contains all of the active driver ids and their names.
Acceptance Criteria
Driver ID
andBackup Driver ID
from a dropdown containing all of the driversImplementation Todos
Frontend:
ShiftForm.js
to use the backendDriversController.java
get all endpoint to get a list of all drivers and use it to populate a dropdown.