Shifts: Fix sign up text when self sign up is disallowed
This commit is contained in:
parent
7dbc0481b9
commit
d251b4c7f7
|
@ -192,8 +192,8 @@ class ShiftCalendarShiftRenderer
|
||||||
// No link and add a text hint, when the shift ended
|
// No link and add a text hint, when the shift ended
|
||||||
ShiftSignupStatus::NOT_ARRIVED => $inner_text . ' (' . __('please arrive for signup') . ')',
|
ShiftSignupStatus::NOT_ARRIVED => $inner_text . ' (' . __('please arrive for signup') . ')',
|
||||||
ShiftSignupStatus::NOT_YET => $inner_text . ' (' . __('not yet') . ')',
|
ShiftSignupStatus::NOT_YET => $inner_text . ' (' . __('not yet') . ')',
|
||||||
ShiftSignupStatus::ANGELTYPE => $angeltype->restricted
|
ShiftSignupStatus::ANGELTYPE => $angeltype->restricted || !$angeltype->shift_self_signup
|
||||||
// User has to be confirmed on the angeltype first
|
// User has to be confirmed on the angeltype first or can't sign up by themselves
|
||||||
? $inner_text . icon('mortarboard-fill')
|
? $inner_text . icon('mortarboard-fill')
|
||||||
// Add link to join the angeltype first
|
// Add link to join the angeltype first
|
||||||
: $inner_text . '<br />'
|
: $inner_text . '<br />'
|
||||||
|
|
Loading…
Reference in New Issue