|
|
@ -44,7 +44,6 @@ class ShiftCalendarShiftRenderer {
|
|
|
|
|
|
|
|
|
|
|
|
private function classForSignupState(ShiftSignupState $shiftSignupState) {
|
|
|
|
private function classForSignupState(ShiftSignupState $shiftSignupState) {
|
|
|
|
switch ($shiftSignupState->getState()) {
|
|
|
|
switch ($shiftSignupState->getState()) {
|
|
|
|
case ShiftSignupState::ADMIN:
|
|
|
|
|
|
|
|
case ShiftSignupState::OCCUPIED:
|
|
|
|
case ShiftSignupState::OCCUPIED:
|
|
|
|
return 'success';
|
|
|
|
return 'success';
|
|
|
|
|
|
|
|
|
|
|
@ -58,6 +57,7 @@ class ShiftCalendarShiftRenderer {
|
|
|
|
case ShiftSignupState::COLLIDES:
|
|
|
|
case ShiftSignupState::COLLIDES:
|
|
|
|
return 'warning';
|
|
|
|
return 'warning';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
case ShiftSignupState::ADMIN:
|
|
|
|
case ShiftSignupState::FREE:
|
|
|
|
case ShiftSignupState::FREE:
|
|
|
|
return 'danger';
|
|
|
|
return 'danger';
|
|
|
|
}
|
|
|
|
}
|
|
|
|