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())); $date = $start ? $today : $today->modify('+14 days'); if ($ctx->settings->scheduleMode() === 'directadmin_period') { return $date->format('Y-m-d') . '|' . ($start ? 'morning' : 'evening'); } return $date->format('Y-m-d') . 'T' . ($start ? '09:00' : '17:00'); } /** @param array