This adds a dutysup row to the crews table and the default_crews table in the database. It also adjusts the Modify Schedule and Edit Default Schedule pages on the website to show a column for Duty Supervisor.
Since js/controllers/NightCrewsCtrl.js and js/controllers/ModifyScheduleCtrl.js both used the same loadCrews() function to display the crew, the DS was appearing on the Night Crews page, I added a second function loadCrewsNoDS that removes the DS column from the Night Crews Page. Alternatively, it could be removed when being displayed, leaving it in the array, which would only require one function. Let me know if you think that'd be better!
This adds a
dutysup
row to thecrews
table and thedefault_crews
table in the database. It also adjusts theModify Schedule
andEdit Default Schedule
pages on the website to show a column for Duty Supervisor.Since
js/controllers/NightCrewsCtrl.js
andjs/controllers/ModifyScheduleCtrl.js
both used the sameloadCrews()
function to display the crew, the DS was appearing on the Night Crews page, I added a second functionloadCrewsNoDS
that removes the DS column from the Night Crews Page. Alternatively, it could be removed when being displayed, leaving it in the array, which would only require one function. Let me know if you think that'd be better!