Added validation in the model to ensure a shift is scheduled before a sub request can be made for it. Also added a check in the controller to prevent a user from trying to render the sub_request form if the soon to be associated shift is not scheduled (necessary because the form uses the shift to set many default fields)
Added validation in the model to ensure a shift is scheduled before a sub request can be made for it. Also added a check in the controller to prevent a user from trying to render the sub_request form if the soon to be associated shift is not scheduled (necessary because the form uses the shift to set many default fields)