Update event management UI and documentation with new styles and translations
This commit modifies the CSS for the event management block, changing its display properties to enhance visibility. The PHP files have been updated to reflect these changes, including the introduction of new translations for the event management section. Additionally, the version code has been incremented to 4.72.642 to reflect these updates. This aims to improve user experience and accessibility in managing race parameters and statistics.
This commit is contained in:
@ -1049,7 +1049,8 @@ ul.ms1-menu-compte li a:hover, ul.ms1-menu-compte li a:active {
|
||||
}
|
||||
|
||||
.epr-block-gestion{
|
||||
display:none;
|
||||
width:100%;
|
||||
min-width:0;
|
||||
}
|
||||
|
||||
.epr-block-assign .epr-content{
|
||||
|
||||
@ -2602,7 +2602,7 @@ function renderBatchConfig($tabBibAssignments, $strLangue = 'fr', $isTeamEpreuve
|
||||
// ============================================================
|
||||
// MSIN-4379 — Refonte UI assignation dossards v4 (fxShowBibTool4)
|
||||
// Layout 2 colonnes, Tippy.js, clés info / info_aide, en-tête séquences via AJAX.
|
||||
// Prochaine étape : révéler .epr-block-gestion (quantités épreuve).
|
||||
// Bloc gestion épreuve : .epr-block-gestion (quantités / paramètres — contenu à compléter).
|
||||
// ============================================================
|
||||
|
||||
/** Jeton CSRF du module dossards v4 (session). */
|
||||
@ -3077,9 +3077,9 @@ if ($teamMode <= 0) {
|
||||
</div>
|
||||
|
||||
<div class="epr-col-right">
|
||||
<?php /* MSIN-4379 — Gestion de l'épreuve : coquille phase 2, masquée pour l'instant. */ ?>
|
||||
<div class="epr-block epr-block-gestion" style="display:none;">
|
||||
<div class="epr-header"><?php fxBibTexte('bib_v4_gestion_title', 1); ?></div>
|
||||
<?php /* MSIN-4379 — Gestion des épreuves : quantités et paramètres (même niveau que assignation). */ ?>
|
||||
<div class="epr-block epr-block-gestion">
|
||||
<div class="epr-header"><?php echo fxBibBlockHeader('bib_v4_gestion_title', 'Gestion des épreuves', 'bib_v4_gestion_doc'); ?></div>
|
||||
<div class="epr-content epr-gestion-placeholder text-muted small">
|
||||
<?php fxBibTexte('bib_v4_gestion_placeholder', 1); ?>
|
||||
</div>
|
||||
@ -3121,6 +3121,7 @@ if ($teamMode <= 0) {
|
||||
</div>
|
||||
|
||||
<?php echo fxDocRenderModule('bib_v4_assign_doc'); ?>
|
||||
<?php echo fxDocRenderModule('bib_v4_gestion_doc'); ?>
|
||||
|
||||
<?php
|
||||
}
|
||||
|
||||
@ -7,7 +7,7 @@
|
||||
* Constantes *
|
||||
*
|
||||
**************/
|
||||
define('_VERSION_CODE', '4.72.641');
|
||||
define('_VERSION_CODE', '4.72.642');
|
||||
define('_DATE_CODE', '2026-06-17');
|
||||
//MSIN-4290
|
||||
define('QR_SECRET_KEY', 'ms1_qr_2026_cle_secrete_longue_et_fixe');
|
||||
|
||||
@ -9,10 +9,10 @@ WHERE info_clef LIKE 'bib_v4_%'
|
||||
|
||||
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 ('bib_v4_assign_title', 'fr', 'Assignation de dossard', 'Définissez les séquences de dossards et assignez les numéros aux participants inscrits.', 'compte.php', '', 0, 1, '', '', '', NOW());
|
||||
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 ('bib_v4_assign_title', 'en', 'Bib assignment', 'Define bib sequences and assign numbers to registered participants.', 'compte.php', '', 0, 1, '', '', '', NOW());
|
||||
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 ('bib_v4_gestion_title', 'fr', 'Gestion de l''épreuve', 'Bloc réservé à la gestion des quantités et paramètres — à venir.', 'compte.php', '', 0, 1, '', '', '', NOW());
|
||||
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 ('bib_v4_gestion_title', 'en', 'Event management', 'Reserved for quantities and settings — coming soon.', 'compte.php', '', 0, 1, '', '', '', NOW());
|
||||
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 ('bib_v4_gestion_placeholder', 'fr', 'Quantités et paramètres — à venir.', '', 'compte.php', '', 0, 1, '', '', '', NOW());
|
||||
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 ('bib_v4_gestion_placeholder', 'en', 'Quantities and settings — coming soon.', '', 'compte.php', '', 0, 1, '', '', '', NOW());
|
||||
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 ('bib_v4_gestion_title', 'fr', 'Gestion des épreuves', 'Quantités, paramètres et statistiques de l''épreuve — distinct de l''assignation des dossards.', 'compte.php', '', 0, 1, '', '', '', NOW());
|
||||
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 ('bib_v4_gestion_title', 'en', 'Race management', 'Race quantities, settings and statistics — separate from bib assignment.', 'compte.php', '', 0, 1, '', '', '', NOW());
|
||||
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 ('bib_v4_gestion_placeholder', 'fr', 'Quantités et paramètres — contenu à venir.', '', 'compte.php', '', 0, 1, '', '', '', NOW());
|
||||
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 ('bib_v4_gestion_placeholder', 'en', 'Quantities and settings — content coming soon.', '', 'compte.php', '', 0, 1, '', '', '', NOW());
|
||||
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 ('bib_v4_col_view', 'fr', '', 'Voir la grille des dossards de cette séquence.', 'compte.php', '', 0, 1, '', '', '', NOW());
|
||||
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 ('bib_v4_col_view', 'en', '', 'View the bib grid for this sequence.', 'compte.php', '', 0, 1, '', '', '', NOW());
|
||||
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 ('bib_v4_col_start', 'fr', 'Début', 'Premier numéro de la séquence.', 'compte.php', '', 0, 1, '', '', '', NOW());
|
||||
|
||||
@ -276,25 +276,250 @@ INSERT INTO `doc_page` (`doc_mod_clef`, `doc_page_clef`, `doc_langue`, `doc_titr
|
||||
'compte.php', 60, 1, NOW());
|
||||
|
||||
-- -----------------------------------------------------------------------------
|
||||
-- EN (same pedagogical structure)
|
||||
-- EN (full translation — same structure and content as FR)
|
||||
-- -----------------------------------------------------------------------------
|
||||
|
||||
INSERT INTO `doc_page` (`doc_mod_clef`, `doc_page_clef`, `doc_langue`, `doc_titre`, `doc_sous_titre`, `doc_html`, `doc_prg`, `doc_tri`, `doc_actif`, `doc_creation`) VALUES
|
||||
('bib_assignment', 'bib_doc_overview', 'en', 'What is bib assignment?', 'Purpose of this panel',
|
||||
'<article class="ms1-doc-article"><p><strong>Bib assignment</strong> means giving each registered participant a <strong>bib number</strong> for race day.</p><p>This panel lets you define available numbers (sequences), assign in batch, or assign automatically on registration.</p></article>',
|
||||
('bib_assignment', 'bib_doc_overview', 'en', 'What is bib assignment?', 'Role of this panel',
|
||||
'<article class="ms1-doc-article">
|
||||
<p><strong>Bib assignment</strong> means giving each registered participant on a race a <strong>bib number</strong> — the number they will wear on event day.</p>
|
||||
<h3>Why this panel exists</h3>
|
||||
<p>On each race, registrations arrive over time. This block lets the organizer:</p>
|
||||
<ul>
|
||||
<li>define <strong>which numbers</strong> are available (sequences);</li>
|
||||
<li>assign numbers <strong>in bulk</strong> to registrants who do not yet have a bib;</li>
|
||||
<li>or have a number assigned <strong>automatically</strong> on each new registration.</li>
|
||||
</ul>
|
||||
<h3>Logical order (not the order of buttons on screen)</h3>
|
||||
<ol>
|
||||
<li>Understand what a <strong>bib sequence</strong> is (page 2).</li>
|
||||
<li>Create your sequences in the table (+ Add, Start, End, OK).</li>
|
||||
<li>Optional: enable <strong>automatic assignment</strong> (page 4).</li>
|
||||
<li>For registrants already without a number: <strong>Assign by sequence</strong> → <strong>Simulate</strong> → <strong>GO</strong> (page 3).</li>
|
||||
</ol>
|
||||
<h3>Two types of help on screen</h3>
|
||||
<ul>
|
||||
<li>Short <strong>?</strong> next to the title — one-sentence reminder.</li>
|
||||
<li>Guide <strong>?</strong> (this document) — full explanations, page by page.</li>
|
||||
<li>Each button also has its own <strong>?</strong> for immediate help.</li>
|
||||
</ul>
|
||||
</article>',
|
||||
'compte.php', 10, 1, NOW()),
|
||||
|
||||
('bib_assignment', 'bib_doc_sequences', 'en', 'What is a bib sequence?', 'Concept then the table',
|
||||
'<article class="ms1-doc-article"><p>A <strong>sequence</strong> is a <strong>range of consecutive numbers</strong> (e.g. 1–500). Multiple sequences can exist per race.</p><p>Use <strong>+ Add</strong>, set Start/End, click <strong>OK</strong>. Check rows for batch or auto.</p></article>',
|
||||
'<article class="ms1-doc-article">
|
||||
<h3>What is a bib sequence?</h3>
|
||||
<p>A <strong>sequence</strong> is a <strong>range of consecutive numbers</strong> reserved for a race.</p>
|
||||
<p><strong>Example:</strong> sequence <em>1 to 500</em> → bibs 1, 2, 3 … through 500 can be assigned. When 250 is taken, the system moves to the next free number in the range.</p>
|
||||
<p>You can have <strong>multiple sequences</strong> on the same race (e.g. 1–500 for the public, 1000–1100 for volunteers).</p>
|
||||
<h3>Checkbox on the left of each row</h3>
|
||||
<dl class="ms1-doc-bouton">
|
||||
<dt>What is it?</dt><dd>It <strong>selects</strong> this sequence for an operation (batch or auto).</dd>
|
||||
<dt>When to use it?</dt><dd>Before <strong>Assign by sequence</strong> or before <strong>Accept</strong> for automatic assignment.</dd>
|
||||
<dt>How?</dt><dd>Check one or more rows. Row order may affect priority of ranges.</dd>
|
||||
</dl>
|
||||
<h3>The table — each column</h3>
|
||||
<section class="ms1-doc-bouton">
|
||||
<h4>Eye icon</h4>
|
||||
<dl><dt>What is it?</dt><dd>Visual grid: <strong>free</strong> and <strong>used</strong> numbers in this sequence.</dd>
|
||||
<dt>When?</dt><dd>Check range status or correct a number manually.</dd></dl>
|
||||
</section>
|
||||
<section class="ms1-doc-bouton">
|
||||
<h4>Start / End</h4>
|
||||
<dl><dt>What is it?</dt><dd>First and last number in the range.</dd>
|
||||
<dt>How?</dt><dd>Edit the values then click <strong>OK</strong> on the row to save.</dd></dl>
|
||||
</section>
|
||||
<section class="ms1-doc-bouton">
|
||||
<h4>OK (green check)</h4>
|
||||
<dl><dt>What is it?</dt><dd><strong>Saves</strong> the sequence (new row or Start/End change).</dd>
|
||||
<dt>Note</dt><dd>Required after + Add or after changing bounds.</dd></dl>
|
||||
</section>
|
||||
<section class="ms1-doc-bouton">
|
||||
<h4>Delete</h4>
|
||||
<dl><dt>What is it?</dt><dd>Removes the sequence from the configuration.</dd>
|
||||
<dt>Note</dt><dd>Use carefully if bibs in this range are already assigned.</dd></dl>
|
||||
</section>
|
||||
<section class="ms1-doc-bouton">
|
||||
<h4>Last / Used / Avail.</h4>
|
||||
<dl><dt>What is it?</dt><dd><strong>Last</strong> = last number assigned; <strong>Used</strong> = how many taken; <strong>Avail.</strong> = how many remain.</dd></dl>
|
||||
</section>
|
||||
<section class="ms1-doc-bouton">
|
||||
<h4>+ Add</h4>
|
||||
<dl><dt>What is it?</dt><dd>Adds a new empty <strong>sequence row</strong>.</dd>
|
||||
<dt>How?</dt><dd>+ Add → fill Start and End → <strong>OK</strong> on the row.</dd></dl>
|
||||
</section>
|
||||
</article>',
|
||||
'compte.php', 20, 1, NOW()),
|
||||
|
||||
('bib_assignment', 'bib_doc_batch', 'en', 'Buttons: batch assignment', 'Assign by sequence, Simulate, GO…',
|
||||
'<article class="ms1-doc-article"><p>Each button explained with: What is it? When? How? Notes.</p><section class="ms1-doc-bouton"><h3>Assign by sequence</h3><dl><dt>What is it?</dt><dd>Opens batch mode.</dd><dt>How?</dt><dd>Check sequences → order → Simulate → GO.</dd></dl></section><section class="ms1-doc-bouton"><h3>Simulate</h3><dl><dt>What is it?</dt><dd>Preview without saving.</dd></dl></section><section class="ms1-doc-bouton"><h3>GO</h3><dl><dt>What is it?</dt><dd>Runs assignment for real.</dd></dl></section></article>',
|
||||
'<article class="ms1-doc-article">
|
||||
<p>These buttons assign bibs <strong>in one operation</strong> to all participants who <em>do not yet</em> have a number. Each button below uses the same explanation template.</p>
|
||||
|
||||
<section class="ms1-doc-bouton">
|
||||
<h3>« Assign by sequence » button</h3>
|
||||
<dl>
|
||||
<dt>What is it?</dt>
|
||||
<dd>Opens <strong>batch mode</strong>: panel with assignment order, Simulate and GO.</dd>
|
||||
<dt>When to use it?</dt>
|
||||
<dd>When participants are registered but <strong>without a bib</strong>, and you want to process them all at once.</dd>
|
||||
<dt>How?</dt>
|
||||
<dd>Click the button → check sequences in the table → choose order → Simulate → GO.</dd>
|
||||
<dt>Note</dt>
|
||||
<dd>Clicked again, the label becomes <strong>Cancel</strong>: closes the batch panel without assigning.</dd>
|
||||
</dl>
|
||||
</section>
|
||||
|
||||
<section class="ms1-doc-bouton">
|
||||
<h3>« Assignment order » list</h3>
|
||||
<dl>
|
||||
<dt>What is it?</dt>
|
||||
<dd>Sets <strong>in what order</strong> participants are sorted before receiving a number.</dd>
|
||||
<dt>When to use it?</dt>
|
||||
<dd>Always in batch mode, before Simulate or GO.</dd>
|
||||
<dt>How?</dt>
|
||||
<dd>Choose from the list: family name, first name, registration date, team name (team race), etc.</dd>
|
||||
<dt>Note</dt>
|
||||
<dd>On a solo race, the « team name » option does not appear.</dd>
|
||||
</dl>
|
||||
</section>
|
||||
|
||||
<section class="ms1-doc-bouton">
|
||||
<h3>« Simulate » button</h3>
|
||||
<dl>
|
||||
<dt>What is it?</dt>
|
||||
<dd>Shows <strong>who would receive which bib</strong> if you ran the assignment.</dd>
|
||||
<dt>When to use it?</dt>
|
||||
<dd><strong>Always before GO</strong> — to verify without risk.</dd>
|
||||
<dt>How?</dt>
|
||||
<dd>Sequences checked + order chosen → click Simulate → read the summary (available / to assign / missing).</dd>
|
||||
<dt>Note</dt>
|
||||
<dd><strong>No changes</strong> to the database: this is a preview only.</dd>
|
||||
</dl>
|
||||
</section>
|
||||
|
||||
<section class="ms1-doc-bouton">
|
||||
<h3>« GO » button</h3>
|
||||
<dl>
|
||||
<dt>What is it?</dt>
|
||||
<dd>Runs the batch assignment <strong>for real</strong>.</dd>
|
||||
<dt>When to use it?</dt>
|
||||
<dd>When the simulation looks correct.</dd>
|
||||
<dt>How?</dt>
|
||||
<dd>After Simulate (recommended) → GO. Participants without a bib receive a number.</dd>
|
||||
<dt>Note</dt>
|
||||
<dd>Real action: numbers are saved. No automatic undo — use Reset if needed.</dd>
|
||||
</dl>
|
||||
</section>
|
||||
|
||||
<section class="ms1-doc-bouton">
|
||||
<h3>« Reset » button (red)</h3>
|
||||
<dl>
|
||||
<dt>What is it?</dt>
|
||||
<dd>Removes <strong>already assigned</strong> bibs on the race.</dd>
|
||||
<dt>When to use it?</dt>
|
||||
<dd>Start over, fix a strategy mistake — use with care.</dd>
|
||||
<dt>Note</dt>
|
||||
<dd>Only visible when at least one bib is already assigned on the race. Check impact before confirming.</dd>
|
||||
</dl>
|
||||
</section>
|
||||
</article>',
|
||||
'compte.php', 30, 1, NOW()),
|
||||
('bib_assignment', 'bib_doc_auto', 'en', 'Automatic assignment', 'Concept and buttons',
|
||||
'<article class="ms1-doc-article"><p>Auto assigns a bib on each new registration from checked sequences.</p></article>',
|
||||
|
||||
('bib_assignment', 'bib_doc_auto', 'en', 'Automatic assignment', 'Concept and each button',
|
||||
'<article class="ms1-doc-article">
|
||||
<h3>What is automatic assignment?</h3>
|
||||
<p>As soon as a <strong>new participant registers</strong>, the system assigns the next free bib in the sequences you checked — without going through Simulate / GO.</p>
|
||||
|
||||
<section class="ms1-doc-bouton">
|
||||
<h3>« Automatic assignment » / « Auto — configure » button</h3>
|
||||
<dl>
|
||||
<dt>What is it?</dt>
|
||||
<dd>Grey = inactive. Green « Auto — configure » = already active; you change which sequences are used.</dd>
|
||||
<dt>When?</dt>
|
||||
<dd>During registration if you want numbers assigned immediately on signup.</dd>
|
||||
<dt>How?</dt>
|
||||
<dd>Click → check sequences → <strong>Accept</strong>.</dd>
|
||||
</dl>
|
||||
</section>
|
||||
|
||||
<section class="ms1-doc-bouton">
|
||||
<h3>« Auto on » badge</h3>
|
||||
<dl>
|
||||
<dt>What is it?</dt>
|
||||
<dd>Green indicator: auto is running for this race.</dd>
|
||||
</dl>
|
||||
</section>
|
||||
|
||||
<section class="ms1-doc-bouton">
|
||||
<h3>« Accept » button</h3>
|
||||
<dl>
|
||||
<dt>What is it?</dt>
|
||||
<dd>Saves the auto configuration (which sequences are used).</dd>
|
||||
<dt>Note</dt>
|
||||
<dd>Sequences must be checked before Accept.</dd>
|
||||
</dl>
|
||||
</section>
|
||||
|
||||
<section class="ms1-doc-bouton">
|
||||
<h3>« Cancel » button (auto)</h3>
|
||||
<dl>
|
||||
<dt>What is it?</dt>
|
||||
<dd>Closes auto edit mode <strong>without saving</strong> checkbox changes.</dd>
|
||||
</dl>
|
||||
</section>
|
||||
|
||||
<section class="ms1-doc-bouton">
|
||||
<h3>« Disable auto » button</h3>
|
||||
<dl>
|
||||
<dt>What is it?</dt>
|
||||
<dd>Stops automatic assignment.</dd>
|
||||
<dt>Note</dt>
|
||||
<dd>Sequences remain; bibs already assigned are not removed.</dd>
|
||||
</dl>
|
||||
</section>
|
||||
</article>',
|
||||
'compte.php', 40, 1, NOW()),
|
||||
('bib_assignment', 'bib_doc_solo', 'en', 'Individual race', 'Solo impact on buttons',
|
||||
'<article class="ms1-doc-article"><p>One participant = one bib. No team sort order.</p></article>',
|
||||
|
||||
('bib_assignment', 'bib_doc_solo', 'en', 'Individual race (solo)', 'What it is and impact on buttons',
|
||||
'<article class="ms1-doc-article">
|
||||
<h3>What is a solo race?</h3>
|
||||
<p>Each participant competes <strong>alone</strong>: one registrant = one person = <strong>one bib</strong>.</p>
|
||||
<h3>Impact on buttons</h3>
|
||||
<ul>
|
||||
<li><strong>Assignment order</strong>: name, first name, registration date, date of birth — no sort by team name.</li>
|
||||
<li>No « Individual bibs » / « 1 team = 1 bib » choice (team races only).</li>
|
||||
<li>Grid (eye): one row per participant.</li>
|
||||
</ul>
|
||||
</article>',
|
||||
'compte.php', 50, 1, NOW()),
|
||||
|
||||
('bib_assignment', 'bib_doc_equipe', 'en', 'Team race', 'Assignment method',
|
||||
'<article class="ms1-doc-article"><p><strong>Individual bibs</strong> vs <strong>1 team = 1 bib</strong>. Choose before first assignment.</p></article>',
|
||||
'<article class="ms1-doc-article">
|
||||
<h3>What is a team race?</h3>
|
||||
<p>Participants register as a <strong>team</strong>. How many bibs to assign depends on the <strong>method</strong> chosen on the left.</p>
|
||||
|
||||
<section class="ms1-doc-bouton">
|
||||
<h3>« Individual bibs »</h3>
|
||||
<dl>
|
||||
<dt>What is it?</dt>
|
||||
<dd>Each member gets their <strong>own number</strong>, like a solo race.</dd>
|
||||
<dt>When?</dt>
|
||||
<dd>Each runner needs a distinct bib on the start line.</dd>
|
||||
<dt>Note</dt>
|
||||
<dd>« Team name » sort order is available in batch mode.</dd>
|
||||
</dl>
|
||||
</section>
|
||||
|
||||
<section class="ms1-doc-bouton">
|
||||
<h3>« 1 team = 1 bib »</h3>
|
||||
<dl>
|
||||
<dt>What is it?</dt>
|
||||
<dd>All members of a team share the <strong>same number</strong>.</dd>
|
||||
<dt>When?</dt>
|
||||
<dd>The number identifies the team, not each person.</dd>
|
||||
<dt>Note</dt>
|
||||
<dd>Batch assigns by <strong>team</strong>. Choice is locked after the first bib is assigned.</dd>
|
||||
</dl>
|
||||
</section>
|
||||
</article>',
|
||||
'compte.php', 60, 1, NOW());
|
||||
|
||||
115
sql/MSIN-doc-bib_gestion.sql
Normal file
115
sql/MSIN-doc-bib_gestion.sql
Normal file
@ -0,0 +1,115 @@
|
||||
-- =============================================================================
|
||||
-- MSIN — Documentation : Gestion des épreuves (module bib_gestion)
|
||||
-- =============================================================================
|
||||
-- Deuxième bloc doc (même niveau que bib_assignment / assignation de dossard).
|
||||
-- Ancre UI : bib_v4_gestion_doc → en-tête « Gestion des épreuves ».
|
||||
-- Prérequis : tables doc_mod, doc_page, doc_anchor (MSIN-doc-module.sql).
|
||||
-- Exécuter sur la BD client (inscription).
|
||||
-- =============================================================================
|
||||
|
||||
DELETE FROM `doc_page` WHERE `doc_mod_clef` = 'bib_gestion';
|
||||
DELETE FROM `doc_anchor` WHERE `doc_mod_clef` = 'bib_gestion';
|
||||
DELETE FROM `doc_mod` WHERE `doc_mod_clef` = 'bib_gestion';
|
||||
|
||||
INSERT INTO `doc_mod` (`doc_mod_clef`, `doc_mod_prg`, `doc_mod_titre`, `doc_mod_actif`, `doc_mod_tri`, `doc_mod_creation`)
|
||||
VALUES ('bib_gestion', 'compte.php', 'Gestion des épreuves', 1, 20, NOW());
|
||||
|
||||
INSERT INTO `doc_anchor` (`doc_anchor_clef`, `doc_mod_clef`, `doc_prg`, `doc_actif`, `doc_creation`)
|
||||
VALUES ('bib_v4_gestion_doc', 'bib_gestion', 'compte.php', 1, NOW());
|
||||
|
||||
-- -----------------------------------------------------------------------------
|
||||
-- FR
|
||||
-- -----------------------------------------------------------------------------
|
||||
|
||||
INSERT INTO `doc_page` (`doc_mod_clef`, `doc_page_clef`, `doc_langue`, `doc_titre`, `doc_sous_titre`, `doc_html`, `doc_prg`, `doc_tri`, `doc_actif`, `doc_creation`) VALUES
|
||||
('bib_gestion', 'bib_gest_overview', 'fr', 'C''est quoi la gestion des épreuves ?', 'Rôle de ce bloc',
|
||||
'<article class="ms1-doc-article">
|
||||
<p>La <strong>gestion des épreuves</strong> regroupe les paramètres et indicateurs liés à chaque épreuve de l''événement — en dehors de l''assignation des dossards.</p>
|
||||
<h3>À quoi sert ce bloc ?</h3>
|
||||
<p>Pour chaque épreuve, ce panneau permettra au promoteur de :</p>
|
||||
<ul>
|
||||
<li>consulter et ajuster les <strong>quantités</strong> (places disponibles, inscrits, ajustements) ;</li>
|
||||
<li>gérer les <strong>paramètres</strong> spécifiques à l''épreuve ;</li>
|
||||
<li>suivre les <strong>statistiques</strong> utiles à la planification (total inscrits, avec dossard, etc.).</li>
|
||||
</ul>
|
||||
<h3>Relation avec l''assignation de dossard</h3>
|
||||
<p>Les deux blocs sont au <strong>même niveau</strong> pour chaque épreuve :</p>
|
||||
<ul>
|
||||
<li><strong>Gestion des épreuves</strong> — quantités et paramètres de l''épreuve ;</li>
|
||||
<li><strong>Assignation de dossard</strong> — séquences et attribution des numéros.</li>
|
||||
</ul>
|
||||
<blockquote>Ce guide est en cours de composition. Utilisez l''icône livre (mode Textes ON) pour éditer le contenu.</blockquote>
|
||||
</article>',
|
||||
'compte.php', 10, 1, NOW()),
|
||||
|
||||
('bib_gestion', 'bib_gest_quantites', 'fr', 'Quantités et places', 'À venir dans ce bloc',
|
||||
'<article class="ms1-doc-article">
|
||||
<h3>Quantités d''épreuve</h3>
|
||||
<p>Chaque épreuve possède une capacité (nombre de places). Le promoteur peut :</p>
|
||||
<ul>
|
||||
<li>voir la quantité <strong>originale</strong> et la quantité <strong>courante</strong> ;</li>
|
||||
<li>appliquer un <strong>ajustement</strong> (+ / − places) ;</li>
|
||||
<li>consulter le nombre d''<strong>inscrits</strong> et de places <strong>restantes</strong>.</li>
|
||||
</ul>
|
||||
<h3>Contenu à compléter</h3>
|
||||
<p>Les champs et boutons de ce bloc seront documentés ici au fur et à mesure de leur mise en place dans l''interface.</p>
|
||||
</article>',
|
||||
'compte.php', 20, 1, NOW());
|
||||
|
||||
-- -----------------------------------------------------------------------------
|
||||
-- EN (same structure)
|
||||
-- -----------------------------------------------------------------------------
|
||||
|
||||
INSERT INTO `doc_page` (`doc_mod_clef`, `doc_page_clef`, `doc_langue`, `doc_titre`, `doc_sous_titre`, `doc_html`, `doc_prg`, `doc_tri`, `doc_actif`, `doc_creation`) VALUES
|
||||
('bib_gestion', 'bib_gest_overview', 'en', 'What is race management?', 'Role of this block',
|
||||
'<article class="ms1-doc-article">
|
||||
<p><strong>Race management</strong> covers settings and indicators for each race in the event — separate from bib assignment.</p>
|
||||
<h3>What is this block for?</h3>
|
||||
<p>For each race, this panel will let the organizer:</p>
|
||||
<ul>
|
||||
<li>view and adjust <strong>quantities</strong> (available spots, registrants, adjustments);</li>
|
||||
<li>manage race-specific <strong>settings</strong>;</li>
|
||||
<li>track <strong>statistics</strong> useful for planning (total registered, with bib, etc.).</li>
|
||||
</ul>
|
||||
<h3>Relationship with bib assignment</h3>
|
||||
<p>Both blocks sit at the <strong>same level</strong> for each race:</p>
|
||||
<ul>
|
||||
<li><strong>Race management</strong> — quantities and race settings;</li>
|
||||
<li><strong>Bib assignment</strong> — sequences and number allocation.</li>
|
||||
</ul>
|
||||
<blockquote>This guide is a work in progress. Use the book icon (Text mode ON) to edit content.</blockquote>
|
||||
</article>',
|
||||
'compte.php', 10, 1, NOW()),
|
||||
|
||||
('bib_gestion', 'bib_gest_quantites', 'en', 'Quantities and capacity', 'Coming in this block',
|
||||
'<article class="ms1-doc-article">
|
||||
<h3>Race quantities</h3>
|
||||
<p>Each race has a capacity (number of spots). The organizer can:</p>
|
||||
<ul>
|
||||
<li>view the <strong>original</strong> and <strong>current</strong> quantity;</li>
|
||||
<li>apply an <strong>adjustment</strong> (+ / − spots);</li>
|
||||
<li>see <strong>registrants</strong> and <strong>remaining</strong> spots.</li>
|
||||
</ul>
|
||||
<h3>Content to complete</h3>
|
||||
<p>Fields and buttons in this block will be documented here as they are added to the interface.</p>
|
||||
</article>',
|
||||
'compte.php', 20, 1, NOW());
|
||||
|
||||
-- Libellés info (titre bloc + aide courte Tippy)
|
||||
UPDATE `info` SET `info_texte` = 'Gestion des épreuves',
|
||||
`info_aide` = 'Quantités, paramètres et statistiques de l''épreuve — distinct de l''assignation des dossards.',
|
||||
`info_maj` = NOW()
|
||||
WHERE `info_clef` = 'bib_v4_gestion_title' AND `info_langue` = 'fr' AND `info_prg` = 'compte.php';
|
||||
|
||||
UPDATE `info` SET `info_texte` = 'Race management',
|
||||
`info_aide` = 'Race quantities, settings and statistics — separate from bib assignment.',
|
||||
`info_maj` = NOW()
|
||||
WHERE `info_clef` = 'bib_v4_gestion_title' AND `info_langue` = 'en' AND `info_prg` = 'compte.php';
|
||||
|
||||
UPDATE `info` SET `info_texte` = 'Quantités et paramètres — contenu à venir.',
|
||||
`info_maj` = NOW()
|
||||
WHERE `info_clef` = 'bib_v4_gestion_placeholder' AND `info_langue` = 'fr' AND `info_prg` = 'compte.php';
|
||||
|
||||
UPDATE `info` SET `info_texte` = 'Quantities and settings — content coming soon.',
|
||||
`info_maj` = NOW()
|
||||
WHERE `info_clef` = 'bib_v4_gestion_placeholder' AND `info_langue` = 'en' AND `info_prg` = 'compte.php';
|
||||
Reference in New Issue
Block a user