style: normalize headers, overtype editor rounded corners, remove duplicate cover preview, thesis-add-header grid layout, subtitle below header with top gradient

This commit is contained in:
Pontoporeia
2026-05-08 19:24:24 +02:00
parent 7ccadbb224
commit 21c2b55bfb
23 changed files with 1855 additions and 1531 deletions

View File

@@ -0,0 +1,16 @@
-- Add name (human-readable title) and enabled (show/hide toggle) columns
-- to form_help_blocks. Drop sort_order — blocks are now fixed-position,
-- one per fieldset, no reordering.
ALTER TABLE form_help_blocks ADD COLUMN name TEXT NOT NULL DEFAULT '';
ALTER TABLE form_help_blocks ADD COLUMN enabled INTEGER NOT NULL DEFAULT 1;
-- Backfill names from the FORM_HELP_LABELS mapping.
UPDATE form_help_blocks SET name = 'Introduction' WHERE key = 'partage_intro';
UPDATE form_help_blocks SET name = 'Informations du TFE' WHERE key = 'fieldset_tfe_info';
UPDATE form_help_blocks SET name = 'Note Synopsis' WHERE key = 'fieldset_synopsis';
UPDATE form_help_blocks SET name = 'Composition du jury' WHERE key = 'fieldset_jury';
UPDATE form_help_blocks SET name = 'Cadre académique' WHERE key = 'fieldset_academic';
UPDATE form_help_blocks SET name = 'Fichiers' WHERE key = 'fieldset_files';
UPDATE form_help_blocks SET name = 'Visibilité / Accès' WHERE key = 'fieldset_access';
UPDATE form_help_blocks SET name = 'E-mail de confirmation' WHERE key = 'fieldset_email';

View File

@@ -0,0 +1,8 @@
-- Add missing form help block keys for all student-form fieldsets.
-- fieldset_synopsis is already seeded but injected inside Informations du TFE via $synopsisExtra.
-- fieldset_academic already exists but was never wired in form.php for partage mode.
INSERT OR IGNORE INTO form_help_blocks (key, name, content, enabled) VALUES
('fieldset_languages', 'Langue(s)', '', 1),
('fieldset_keywords', 'Mots-clés', '', 1),
('fieldset_metadata', 'Métadonnées complémentaires', '', 1);