url($isUpdate ? 'update.html' : 'create.html'); $intent = $isUpdate ? 'update:' . $id : 'create'; $csrf = $ctx->csrfField($intent); $hiddenId = $isUpdate ? '' : ''; return '
'; } function default_schedule_value(AppContext $ctx, bool $start): string { $today = new DateTimeImmutable('today', new DateTimeZone($ctx->settings->timezone())); return $today->format('Y-m-d') . 'T' . ($start ? '00:00' : '23:59'); } /** @param array