add datetime picker to admin shifts page

This commit is contained in:
msquare 2021-04-16 18:03:54 +02:00
parent cb2ec5457e
commit d054378a63
1 changed files with 2 additions and 2 deletions

View File

@ -418,8 +418,8 @@ function admin_shifts()
form_select('rid', __('Room'), $room_array, $rid), form_select('rid', __('Room'), $room_array, $rid),
div('row', [ div('row', [
div('col-md-6', [ div('col-md-6', [
form_text('start', __('Start'), date('Y-m-d H:i', $start)), form_datetime('start', __('Start'), $start),
form_text('end', __('End'), date('Y-m-d H:i', $end)), form_datetime('end', __('End'), $end),
form_info(__('Mode'), ''), form_info(__('Mode'), ''),
form_radio('mode', __('Create one shift'), $mode == 'single', 'single'), form_radio('mode', __('Create one shift'), $mode == 'single', 'single'),
form_radio('mode', __('Create multiple shifts'), $mode == 'multi', 'multi'), form_radio('mode', __('Create multiple shifts'), $mode == 'multi', 'multi'),