This commit modifies the labels for the confirmation button in both French and English to provide clearer instructions. The button is also repositioned to appear last in the management form for better user experience. Additionally, corresponding changes are made in the SQL file to reflect the updated labels in the database. These enhancements aim to improve clarity and usability in the registration management interface.
64 lines
4.1 KiB
SQL
64 lines
4.1 KiB
SQL
-- =====================================================================
|
|
-- MSIN — Retrait du nom "mobile" du module de gestion des inscriptions
|
|
-- ---------------------------------------------------------------------
|
|
-- Renomme cote BD ce qui accompagne le renommage du code :
|
|
-- * route/page : compte_inc_tableau_inscriptions_mobile -> _gestion
|
|
-- * cles i18n : inscr_mobile_* -> inscr_gestion_*
|
|
-- Le slug public /mobile (entree mobile reelle) n'est PAS touche.
|
|
-- Inclut aussi un filet de securite pour quelques libelles info manquants
|
|
-- (libelles de boutons + en-tete "Gestion" du hub promoteur).
|
|
-- *** C'EST LE SEUL FICHIER A EXECUTER pour que tout fonctionne. ***
|
|
-- Script idempotent : peut etre rejoue sans erreur.
|
|
-- =====================================================================
|
|
|
|
-- 1) Page (route) : renommer le slug + le libelle administratif.
|
|
UPDATE inscriptions_pages
|
|
SET pag_code = 'compte_inc_tableau_inscriptions_gestion',
|
|
pag_label_fr = 'Gestion des inscriptions',
|
|
pag_label_en = 'Registration management'
|
|
WHERE pag_code = 'compte_inc_tableau_inscriptions_mobile';
|
|
|
|
-- 2) Cles i18n : inscr_mobile_* -> inscr_gestion_*
|
|
-- Securite (idempotence) : on retire d'abord toute cible "gestion"
|
|
-- qui aurait ENCORE son jumeau "mobile" — cas d'une execution
|
|
-- precedente interrompue — afin d'eviter une collision de cle.
|
|
DELETE g
|
|
FROM info g
|
|
JOIN info m
|
|
ON m.info_langue = g.info_langue
|
|
AND m.info_prg = g.info_prg
|
|
AND m.info_clef = CONCAT('inscr_mobile_', SUBSTRING(g.info_clef FROM 15))
|
|
WHERE g.info_clef LIKE 'inscr_gestion_%';
|
|
|
|
UPDATE info
|
|
SET info_clef = CONCAT('inscr_gestion_', SUBSTRING(info_clef FROM 14))
|
|
WHERE info_clef LIKE 'inscr_mobile_%';
|
|
|
|
-- 3) Nouveaux libelles de boutons (fiche de gestion) qui n'avaient jamais
|
|
-- ete seedes dans `info` (ils n'existaient que comme secours dans le code).
|
|
-- On les rend editables via l'editeur de textes. Idempotent (DELETE puis INSERT).
|
|
DELETE FROM info WHERE info_prg = 'compte.php' AND info_clef IN (
|
|
'inscr_gestion_show_invoice',
|
|
'inscr_gestion_renvoi',
|
|
'inscr_gestion_modifier_participant',
|
|
'inscr_gestion_search_prompt'
|
|
);
|
|
|
|
INSERT INTO info (info_clef, info_langue, info_texte, info_aide, info_prg, info_description, info_trie, info_actif, info_option1, info_option2, info_option3, info_creation) VALUES
|
|
('inscr_gestion_show_invoice', 'fr', 'Afficher la facture', '', 'compte.php', '', 0, 1, '', '', '', NOW()),
|
|
('inscr_gestion_show_invoice', 'en', 'Show invoice', '', 'compte.php', '', 0, 1, '', '', '', NOW()),
|
|
('inscr_gestion_renvoi', 'fr', 'Retourner confirmation', '', 'compte.php', '', 0, 1, '', '', '', NOW()),
|
|
('inscr_gestion_renvoi', 'en', 'Resend confirmation', '', 'compte.php', '', 0, 1, '', '', '', NOW()),
|
|
('inscr_gestion_modifier_participant', 'fr', 'Modifier l''inscription', '', 'compte.php', '', 0, 1, '', '', '', NOW()),
|
|
('inscr_gestion_modifier_participant', 'en', 'Edit registration', '', 'compte.php', '', 0, 1, '', '', '', NOW()),
|
|
('inscr_gestion_search_prompt', 'fr', 'Utilisez la recherche ci-dessus pour afficher les inscriptions. Laissez les champs vides et lancez la recherche pour toutes les afficher.', '', 'compte.php', '', 0, 1, '', '', '', NOW()),
|
|
('inscr_gestion_search_prompt', 'en', 'Use the search above to display registrations. Leave the fields empty and search to show them all.', '', 'compte.php', '', 0, 1, '', '', '', NOW());
|
|
|
|
-- 4) Filet de securite : libelle de l'en-tete "Gestion" du hub promoteur.
|
|
-- (Defini a l'origine dans MSIN-promoteur-hub-phase1.sql ; reinsere ici pour
|
|
-- garantir qu'il existe — sinon l'en-tete affiche la clef brute.)
|
|
DELETE FROM info WHERE info_prg = 'compte.php' AND info_clef = 'promoteur_hub_section_gestion';
|
|
INSERT INTO info (info_clef, info_langue, info_texte, info_aide, info_prg, info_description, info_trie, info_actif, info_option1, info_option2, info_option3, info_creation) VALUES
|
|
('promoteur_hub_section_gestion', 'fr', 'Gestion', '', 'compte.php', '', 0, 1, '', '', '', NOW()),
|
|
('promoteur_hub_section_gestion', 'en', 'Management', '', 'compte.php', '', 0, 1, '', '', '', NOW());
|