tag * bool $showAutosaveStatus — render the "Brouillon enregistré" status indicator * * Website: * string $existingWebsiteUrl * string $existingWebsiteLabel * array $checkedFormatsForSiteWeb */ // ── Defaults ────────────────────────────────────────────────────────────────── $mode = $mode ?? 'add'; $formExtraAttrs = $formExtraAttrs ?? ''; $showAutosaveStatus = $showAutosaveStatus ?? false; // In admin add/edit, no field is required (admins can save partial records) $adminMode = ($mode === 'add' || $mode === 'edit'); $formAction = $formAction ?? ''; $hiddenFields = $hiddenFields ?? ''; $formData = $formData ?? []; $synopsisExtra = $synopsisExtra ?? ""; $juryPromoteur = $juryPromoteur ?? null; $juryPromoteurs = $juryPromoteurs ?? []; $juryPromoteurUlb = $juryPromoteurUlb ?? null; $juryPromoteursUlb = $juryPromoteursUlb ?? []; $lecteursInternes = $lecteursInternes ?? []; $lecteursExternes = $lecteursExternes ?? []; $juryPresident = $juryPresident ?? null; $showPromoteurUlb = $showPromoteurUlb ?? true; $promoteurUlbConditional = $promoteurUlbConditional ?? false; $libreEnabled = $libreEnabled ?? true; $interneEnabled = $interneEnabled ?? true; $interditEnabled = $interditEnabled ?? true; $generalitiesHtml = $generalitiesHtml ?? ""; $defaultAccessTypeId = $defaultAccessTypeId ?? 2; // Optional flags $showIntroHelp = $showIntroHelp ?? false; $showFlash = $showFlash ?? false; $showContact = $showContact ?? false; $showCoverPreview = $showCoverPreview ?? false; $showExistingFiles = $showExistingFiles ?? false; $showBannerPreview = false; // Banners merged into covers — field removed $showBackoffice = $showBackoffice ?? false; $showEmailConfirmation = $showEmailConfirmation ?? false; $oldFn = $oldFn ?? (function_exists('old') ? 'old' : fn($k, $d = '') => $d); $withAutofocusFn = $withAutofocusFn ?? fn($field, $attrs = []) => $attrs; $filesMode = $filesMode ?? 'add'; $existingWebsiteUrl = $existingWebsiteUrl ?? ''; $existingWebsiteLabel = $existingWebsiteLabel ?? ''; $checkedFormatsForSiteWeb = $checkedFormatsForSiteWeb ?? []; // Duration (value + unit) $durationValue = $durationValue ?? null; $durationUnit = $durationUnit ?? 'pages'; // WCAG 3.3.1: which field has a validation error (set by caller from App::consumeAutofocus()) $errorFieldName = $errorFieldName ?? null; ?>