$d); $withAutofocusFn = $withAutofocusFn ?? fn($field, $attrs = []) => $attrs; $formData = $formData ?? []; $adminMode = $adminMode ?? false; $lockedYear = $lockedYear ?? null; ?>
Cadre académique 2000, 'max' => date('Y') + 1]); if ($lockedYear !== null): // Link specifies a locked academic year: pre-fill, disable editing. $value = (string)$lockedYear; $attrs['disabled'] = true; $attrs['readonly'] = true; // Include a hidden input so the value is still submitted when the field is disabled. ?>