Commit Graph

227 Commits

Author SHA1 Message Date
bc407a7c20 Add refund functionality to mobile event management
This commit introduces a new refund feature in the mobile event management system. It includes an AJAX-based refund form that allows users to request refunds directly from the event management interface. The refund button is conditionally displayed based on user permissions, and the form is dynamically loaded to enhance user experience. Additionally, the refund processing logic is integrated with existing PayPal functions to ensure seamless transaction handling. This update improves the overall usability and functionality of the event management system.
2026-06-26 14:45:09 -04:00
f1e43c911b Update access permissions from 'inscriptions_mobile' to 'inscriptions_gestion' across multiple files
This commit refactors the access control logic to replace references to 'inscriptions_mobile' with 'inscriptions_gestion', aligning the permission structure with the new management system. Changes include updates to SQL scripts, PHP functions, and documentation comments to ensure consistency in permission handling for event management. This enhances clarity and maintains the integrity of the access control system.
2026-06-26 14:16:09 -04:00
6f03e76540 Add WYSIWYG editor integration using Trumbowyg in doc_edition.php
This commit introduces the Trumbowyg WYSIWYG editor specifically for the `doc_edition.php` page, enhancing the document editing experience. It includes the necessary CSS and JavaScript files from CDN, along with custom styles and initialization scripts for the editor. This change does not affect other editors like TinyMCE or CKEditor used elsewhere on the site, ensuring a focused enhancement for this page.
2026-06-25 19:30:37 -04:00
953775d9ca Refactor event access management by replacing SQL views with inline queries
This commit removes the deprecated SQL views `v_eve_acces_actif` and `v_eve_acces_permissions`, replacing them with inline SQL queries in the PHP code. This change avoids issues with non-copiable DEFINER attributes in views and enhances the flexibility of access management. The new functions `fxEveAccesActifBody`, `fxEveAccesActifSql`, and `fxEveAccesPermSql` are introduced to encapsulate the SQL logic directly within the application, improving maintainability and performance.
2026-06-25 18:24:39 -04:00
683e2d69d0 Update promoteur hub styles and enhance event section rendering
This commit modifies the CSS for the promoteur hub, introducing new styles for card elements, including updated colors, borders, and shadows for improved aesthetics. It also enhances the event section rendering by adding a specific class to the event title, ensuring consistent styling across the promoteur hub. Additionally, the version code is incremented to reflect these changes.
2026-06-25 17:15:37 -04:00
a45be35d6c Enhance promoteur hub card styling and update event card structure
This commit introduces new CSS styles for the promoteur hub card, including a background color, border, and shadow effects to improve visual presentation. It also updates the HTML structure of the event card, incorporating a new card icon and enhancing the event title styling for better readability. Additionally, it modifies the logic for displaying document triggers in the promoteur hub announcements section, ensuring a more cohesive user experience.
2026-06-25 17:06:21 -04:00
9a0ea70034 Refactor event modal to event panel and enhance UI interactions
This commit renames the `fxPromoteurHubRenderEventModal` function to `fxPromoteurHubRenderEventPanel`, transitioning from a modal to a collapsible panel for event details. It updates the HTML structure accordingly, improving user interaction with a toggle button and a rotating caret icon for better visual feedback. Additionally, the CSS is enhanced to support the new panel design, ensuring a more cohesive user experience in the promoteur hub.
2026-06-25 17:02:48 -04:00
d95f84bff7 Add event management links and enhance SQL entries
This commit introduces a new function, `fxPromoteurHubGetEventLinks`, to generate management and report links for events, improving the event management interface. It also updates the SQL script to include new entries for the 'Gestion' section in both French and English, enhancing the localization of the promoteur hub. These changes aim to streamline event management and improve user navigation within the promoteur hub.
2026-06-25 16:59:01 -04:00
7cee99e8e0 Add legacy event ID retrieval and merge with access events
This commit introduces a new function, `fxPromoteurHubGetLegacyEventIds`, to retrieve legacy event IDs for a given account. It updates the `fxPromoteurHubGetEvents` and `fxShowPromoteurHubMenuLink` functions to merge legacy event IDs with current access event IDs, ensuring comprehensive event access management. Additionally, it modifies SQL insert statements to update participant space labels for clarity. These changes aim to enhance the event management functionality and improve user experience.
2026-06-25 16:54:12 -04:00
ade9608e72 Refactor promoteur hub logic and introduce new checks
This commit refines the promoteur hub integration by replacing the existing function `fxPromoteurHubComUsesV2` with `fxPromoteurHubShouldUse`, which combines access checks and page existence validation. It updates the account management logic to ensure proper redirects based on the new checks, enhancing the user experience for promoteur hub accounts. Additionally, it introduces a new function to verify the existence of the promoteur hub page, streamlining the access management process.
2026-06-25 16:49:03 -04:00
0dcdcfc829 Implement promoteur hub integration and UI enhancements
This commit introduces the promoteur hub functionality by adding new checks and redirects based on the user's account type. It updates the account management logic to handle promoteur hub users, ensuring proper navigation and access. Additionally, it enhances the CSS for promoteur hub elements, improving the visual presentation. These changes aim to streamline user experience for promoteur hub accounts and ensure proper access management.
2026-06-25 16:45:03 -04:00
5d686b28a4 Enhance event access management with email search functionality and URL adjustments
This commit introduces a new email search feature in the event access management interface, allowing users to find accounts by email for access assignment. It updates the `fxEveAccesCompteAdminUrl` function to include an optional event focus parameter, improving URL handling. Additionally, the AJAX endpoint is modified to return user names along with emails, enhancing the data available for selection. These changes aim to streamline the process of assigning event access and improve overall usability.
2026-06-23 15:18:43 -04:00
c047e36a62 Add event access management functions and UI integration
This commit introduces new functions for managing event access, including `fxEveAccesCompteAdminUrl` and `fxEveAccesEventFormGroupByCom`, which group active kits and extras by event ID. Additionally, it integrates the event access panel into the admin interface, enhancing the user experience with a structured display of access assignments and improved navigation for managing event permissions.
2026-06-23 15:15:48 -04:00
2855967e81 Enhance event access management with validation and UI improvements
This commit adds validation to ensure at least one kit is assigned before granting individual rights, improving the logic for event access management. It also updates the UI to provide clearer options for assigning kits and permissions, enhances the display of assigned kits and rights, and improves the overall layout for better usability.
2026-06-23 15:10:43 -04:00
439a52eb0f Refactor event access display and enhance UI layout
This commit updates the event access management interface by replacing the previous block layout with a structured table format for better clarity and usability. It simplifies the role selection process and improves the visual presentation of event kits. Additionally, it includes conditional messaging for cases with no access, ensuring a more intuitive user experience.
2026-06-23 15:05:05 -04:00
6a4d1761f3 Enhance event access management UI with improved layout and functionality
This commit updates the event access management interface by introducing a more user-friendly layout for displaying event access assignments. It adds dynamic role and permission selection options, enhances the visual presentation of event kits, and improves the overall usability of the form elements. Additionally, it includes conditional messaging for cases with no events or kits, ensuring a clearer user experience.
2026-06-23 15:01:05 -04:00
77a2508c71 Refactor event access management UI and logic
This commit enhances the event access management interface by updating the layout and improving the usability of form elements. It introduces a clearer display of event access assignments and refines the logic for handling active kits. Additionally, it conditionally displays the legacy promoter section based on the current context, ensuring a smoother transition towards the new access management system.
2026-06-23 14:43:58 -04:00
fd26c90098 Implement event access grouping and enhance UI for event management
This commit introduces a new function, `fxEveAccesCompteFormGroupByEvent`, to group active kits and extras by event ID for improved access management in the super admin interface. It also updates the UI to provide clearer information on event access, including a new section for legacy promoter events, and enhances the form elements for better usability. Additionally, the logic for retrieving promoter events is refined to handle empty cases more gracefully.
2026-06-23 14:41:03 -04:00
2cf8f5e7ec restructurer les acces 2026-06-23 14:19:57 -04:00
bc8bc86b74 Refactor access control and UI elements for event management
This commit updates the event management access control logic in `inc_fx_eve_acces.php` to ensure proper permission checks for managing bibs. It also simplifies the UI in `inc_tableau_promoteur.php` by removing conditional rendering for the management link, ensuring it is always displayed. Additionally, the comment in `inc_tableau_gestion_epreuves.php` is updated for clarity.
2026-06-23 12:36:56 -04:00
100accfe34 Remove unused 'variables' table definition from static synchronization configuration 2026-06-23 10:10:06 -04:00
b3b24b08c4 Refactor database connection settings and introduce profile management functions
This commit adds structured database connection profiles for client and CRM environments, enhancing the management of database connections in different environments (preprod and prod). It introduces new functions, `fxSettingsUseDbProfiles` and `fxSettingsUseCrmProfile`, to streamline the assignment of connection parameters, improving code maintainability and readability. Additionally, it removes hardcoded connection details from the main logic, promoting a more dynamic configuration approach.
2026-06-23 10:08:10 -04:00
74da043805 Remove unused static synchronization table definitions from configuration 2026-06-23 09:39:17 -04:00
8eda3d40c3 Refactor static database synchronization configuration and connection handling
This commit updates the static database synchronization logic by removing hardcoded connection details from the `fxStaticSyncClientDatabaseConfigs` function. It now relies on configurations defined in `inc_settings.php` for client connections. The `fxStaticSyncEnvironmentDefinitions` and `fxStaticSyncOpenConnections` functions are modified to utilize these new configurations, enhancing flexibility and maintainability in managing database connections for different environments.
2026-06-23 09:37:49 -04:00
d74d06a3b0 Enhance static database connection handling and synchronization logic
This commit updates the `fxStaticSyncClientDatabaseConfigs` function to return detailed database connection configurations for both preprod and prod clients. It introduces a new class, `clsMysqlStaticSync`, to manage MySQL connections with a short timeout, improving connection handling. The `fxStaticSyncConnect` function is refined to utilize this new class, and the synchronization UI is updated to reflect the new client configurations. These changes streamline database interactions and enhance the overall synchronization process.
2026-06-23 09:20:28 -04:00
1797e0c91e Refactor static database connection handling and update synchronization functions
This commit removes hardcoded database connection details from the `fxStaticSyncClientDatabaseConfigs` function, returning an empty array instead. It also refines the `fxStaticSyncConnect` function to utilize `mysqli_init` for improved connection management and introduces a new `fxStaticSyncOpenConnections` function to reuse existing connections. Additionally, the script execution time limit is increased in `sync_static_db.php` to accommodate longer operations.
2026-06-23 09:17:25 -04:00
02384d3404 Remove unused bib input focus handling in mobile registration and increment version code to 4.72.699 2026-06-22 15:45:11 -04:00
547390286b Enhance mobile registration feedback and fallback text handling
This commit improves the mobile registration module by refining the feedback messages displayed during the bib scanning process. It introduces additional conditions for fallback text to ensure users receive appropriate guidance based on their input. The version code is incremented to 4.72.698 to reflect these updates.
2026-06-22 15:43:48 -04:00
596f3a55c1 Enhance mobile registration UI and functionality for QR and bib scanning
This commit introduces improvements to the mobile registration module by adding a new parameter for QR scanning and enhancing the UI for bib input sections. It includes new functions for rendering collapsible sections in the mobile interface, improving user interaction and accessibility. The CSS is updated to accommodate new styles and layout adjustments, ensuring a better user experience. The version code is incremented to 4.72.697 to reflect these changes.
2026-06-22 15:42:22 -04:00
30b17be43e Refactor mobile bib scanning functionality and enhance UI feedback
This commit refines the mobile bib scanning process by introducing a new capture element and updating the UI to provide clearer feedback during scanning. It removes the unused OCR interval and enhances the event handling for capture actions. Additionally, new messages are added for user guidance, and the version code is incremented to 4.72.696 to reflect these changes. The SQL file is updated to include new translation keys for improved user instructions.
2026-06-22 15:12:34 -04:00
adcb663925 Enhance OCR functionality and UI feedback for mobile registration
This commit improves the Optical Character Recognition (OCR) process in the mobile registration module by introducing a global OCR worker for better management and performance. It updates the UI to include a new loading message during the initialization phase and refines the scanning process. The version code is incremented to 4.72.695 to reflect these enhancements. Additionally, the SQL file is updated to include the new loading message in multiple languages.
2026-06-22 15:07:01 -04:00
e8883cfbf8 Refactor mobile registration QR scanning and update UI elements
This commit streamlines the mobile registration module by removing unused QR mode functionalities and updating the UI for the bib scanning process. It introduces new feedback messages and adjusts the layout for improved user experience. The version code is updated to 4.72.694 to reflect these changes. Additionally, the SQL file is modified to align with the new bib scan terminology.
2026-06-22 15:02:54 -04:00
fd469bdc22 Enhance mobile registration with OCR for dossier scanning and update UI elements
This commit introduces Optical Character Recognition (OCR) functionality for scanning dossier numbers in the mobile registration module. New functions are added to manage the OCR process, including starting and stopping the camera, and updating the UI with relevant feedback messages. Additionally, the version code is updated to 4.72.693 to reflect these enhancements. Unused SQL files related to previous QR code modes have been removed to streamline the codebase.
2026-06-22 14:56:54 -04:00
22534b4cbf Implement OCR functionality for dossier scanning in mobile registration
This commit enhances the mobile registration module by introducing Optical Character Recognition (OCR) capabilities for scanning dossier numbers. New functions are added to manage the OCR process, including preloading the OCR worker, starting and stopping the OCR loop, and updating the UI with scanning status messages. Additionally, the UI is improved with new elements for photo input and feedback messages. The version code is updated to 4.72.692 to reflect these changes.
2026-06-22 14:50:34 -04:00
b5c979058f Enhance QR code scanning functionality and UI for mobile registration
This commit introduces significant updates to the QR code scanning feature in the mobile registration module. It adds new functions for managing QR modes (participant and dossier), improving user interaction with the QR scanner. The UI is enhanced with new elements for mode selection and feedback messages, ensuring a clearer user experience. Additionally, the version code is updated to 4.72.691 to reflect these changes.
2026-06-22 14:36:57 -04:00
3e3a0f1de7 Add static sync functionality and update UI for development tools
This commit introduces the `fxAdminStaticSyncAllowed` function to control access to static database synchronization tools, ensuring only authorized users in development and pre-production environments can access them. The UI is updated to display a new section for these tools in the admin interface, enhancing the overall user experience and access management for development tasks. Additionally, the `.gitignore` file is updated to exclude the `/output/` directory from version control.
2026-06-22 14:08:16 -04:00
87783ad99c Add reactivation functions for event access and update UI for revoked permissions
This commit introduces new functions `fxEveAccesReactivate` and `fxEveAccesReactivateExtra` to handle the reactivation of revoked event access and extra permissions. It also enhances the UI to display a history of revoked permissions, allowing users to reactivate them easily. Additionally, the logic for checking active access has been streamlined, improving overall user experience and access management.
2026-06-19 19:46:45 -04:00
f881b42f7f Update text editing access control and enhance environment checks
This commit modifies the `fxAdminIsDevPreprod` function to improve environment validation for text editing tools, ensuring access is restricted to the appropriate development and pre-production environments. Additionally, it introduces a 403 Forbidden response in `traduction.php` for unauthorized access attempts, enhancing security and user feedback.
2026-06-19 14:37:08 -04:00
d118f5bce7 Add error handling for missing bib assignments and enhance anomaly reporting
This commit introduces new functions to manage errors related to missing bib assignments, specifically for the 'bib_auto_miss' type. It includes logic to resolve open errors when a bib is manually assigned and adds a new function to retrieve and display anomalies for registrations without assigned bibs. Additionally, the UI is updated to provide users with actionable links for resolving these anomalies, improving overall user experience and error management.
2026-06-19 13:39:39 -04:00
c12cca2de9 Enhance mobile registration search functionality and update version code
This commit introduces new functions for resetting search parameters and building search reset URLs in the mobile registration module. It improves the search logic by allowing for more flexible filtering options, including updates to the SQL query conditions for team names and order numbers. Additionally, the version code is incremented to 4.72.690 to reflect these changes.
2026-06-19 13:35:23 -04:00
9c290a66ca Update mobile registration access functions and enhance event permission checks
This commit modifies the mobile registration access logic to utilize the new `fxEveAccesHasInscrMobileWebAccess` function, improving permission handling for mobile event registrations. Additionally, it updates the `fxInscrMobileGetPromoteurEveIds` and `fxInscrMobileCanAccess` functions to streamline access checks. New functions for retrieving event IDs with mobile access permissions are introduced, enhancing overall access control and user experience.
2026-06-19 13:31:00 -04:00
5d99fef4ed Refactor event access functions and streamline mobile registration logic
This commit updates the `fxEveAccesCanQrTest` function to clarify permission handling for QR testing. It also simplifies the `fxInscrMobileCanScan` function by directly returning the permission check result. Additionally, redundant code related to rendering mobile registration fields is removed, enhancing the overall efficiency and readability of the mobile registration logic.
2026-06-19 13:26:49 -04:00
9310c12536 Add event access management functions and enhance mobile permissions
This commit introduces several new functions for managing event access, including `fxEveAccesComHasV2ForEvent`, `fxEveAccesGrantExtra`, and `fxEveAccesRevokeExtra`, which facilitate the granting and revocation of permissions for events. Additionally, the mobile registration logic is updated with the new `fxInscrMobileCanDo` function to streamline permission checks for various actions. These enhancements improve the overall access control and user experience across the application.
2026-06-19 13:20:52 -04:00
e9ad3d8a92 Enhance event access control and integrate new permission checks
This commit introduces the `fxEveAccesCanManageBibV4` and `fxEveAccesCanQrTest` functions to improve event access management. It updates various files to utilize these new permission checks, ensuring that only authorized users can manage event registrations and access QR testing features. Additionally, redundant session checks are removed, and redirection logic is refined for better user experience across the application.
2026-06-19 12:49:19 -04:00
d5fdb227dd Update mobile registration menu labels and enhance SQL entries for V2
This commit modifies the mobile registration menu labels to reflect the new versioning, changing the text to "Gestion des inscriptions V2" in French and "Registration management V2" in English. Additionally, it introduces a new function, `fxInscrMobilePromoteurMenuLabel`, to standardize the label retrieval process. The icon for the mobile registration link is also updated to improve visual consistency across the interface.
2026-06-19 12:43:54 -04:00
460d5df27f Implement mobile login enhancements and UI updates
This commit introduces a mobile login feature with validation messages for username and password fields, improving user experience. It also updates the header and footer to conditionally render elements based on mobile entry status, ensuring a cohesive design. Additionally, CSS styles are added to enhance the mobile interface, and the version code is incremented to 4.72.689 to reflect these changes.
2026-06-19 12:39:47 -04:00
fb4f74d48f Update mobile registration links and enhance access logic
This commit modifies the mobile registration links to point to the correct routes, ensuring proper navigation for users. Additionally, it refines the logic for displaying mobile access based on user permissions, introducing a new function to check for legacy promoteur menu access. These changes improve the user experience and maintain consistency in the mobile module's functionality.
2026-06-19 12:32:43 -04:00
52f9b632fb Enhance mobile text management and internationalization support
This commit introduces several new functions for managing text localization in the mobile module, including `fxInscrMobileInitTextes`, `fxInscrMobileLoadTextes`, and `fxInscrMobileResolveTexte`. These changes improve the handling of multilingual text by loading and resolving localized strings based on the selected language. Additionally, the mobile page initialization logic is updated to ensure proper text loading, and existing text retrieval methods are refactored for consistency and clarity.
2026-06-19 12:29:58 -04:00
af2b0a7faa Refactor mobile registration access logic to utilize new permission functions
This commit updates the mobile registration access checks across multiple files to use the newly implemented `fxInscrMobileCanAccess` and `fxInscrMobileCanScan` functions. The changes enhance the permission handling for mobile event registrations, ensuring a more robust access control mechanism. Additionally, the mobile URL generation is updated for consistency, and new functions for managing event access permissions are introduced to streamline the codebase.
2026-06-19 11:55:00 -04:00
7de632d9fc gestion des droit 2026-06-19 11:45:53 -04:00