Hide comment field on shift self-signup

2022-03-24
Luca 3 years ago
parent a50e415d24
commit 1d586e0ee6

@ -75,7 +75,7 @@ function ShiftEntry_create($shift_entry)
$shift_entry['SID'], $shift_entry['SID'],
$shift_entry['TID'], $shift_entry['TID'],
$shift_entry['UID'], $shift_entry['UID'],
$shift_entry['Comment'], $shift_entry['Comment'] ?? '',
$shift_entry['freeload_comment'], $shift_entry['freeload_comment'],
(int)$shift_entry['freeloaded'], (int)$shift_entry['freeloaded'],
] ]

@ -138,7 +138,7 @@ function ShiftEntry_create_view_user($shift, Room $room, $angeltype, $comment)
Shift_view_header($shift, $room), Shift_view_header($shift, $room),
info(sprintf(__('Do you want to sign up for this shift as %s?'), AngelType_name_render($angeltype)), true), info(sprintf(__('Do you want to sign up for this shift as %s?'), AngelType_name_render($angeltype)), true),
form([ form([
form_textarea('comment', __('Comment (for your eyes only):'), $comment), //form_textarea('comment', __('Comment (for your eyes only):'), $comment),
form_submit('submit', icon('check-lg') . __('Save')) form_submit('submit', icon('check-lg') . __('Save'))
]) ])
]); ]);

Loading…
Cancel
Save