mirror of
https://codeberg.org/PostERG/xamxam.git
synced 2026-06-25 16:19:19 +02:00
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:
16
app/migrations/applied/022_form_help_blocks_name_enabled.sql
Normal file
16
app/migrations/applied/022_form_help_blocks_name_enabled.sql
Normal 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';
|
||||
8
app/migrations/applied/023_add_missing_help_blocks.sql
Normal file
8
app/migrations/applied/023_add_missing_help_blocks.sql
Normal 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);
|
||||
Reference in New Issue
Block a user