From cfa080f945b93798d7b73fbac219407555561280 Mon Sep 17 00:00:00 2001 From: cherif Date: Mon, 10 Apr 2023 16:56:34 +0200 Subject: [PATCH] 10/04/23 - 17h --- src/components/GestionAdministrative.js | 23 +++++++++++++++++-- .../components/_gestionadministrative.scss | 8 +++---- 2 files changed, 25 insertions(+), 6 deletions(-) diff --git a/src/components/GestionAdministrative.js b/src/components/GestionAdministrative.js index 06e37e3..b018013 100644 --- a/src/components/GestionAdministrative.js +++ b/src/components/GestionAdministrative.js @@ -2702,6 +2702,7 @@ function GestionAdministrative(props) { var prenom = cellValues.row.prenom; GetAttendee_Data(email, mysession); + } @@ -2827,6 +2828,16 @@ function GestionAdministrative(props) { } desableAttendeeDetailFields(); + var myelement; + + if (document.getElementById('ajout_participant')) { + myelement = document.getElementById('ajout_participant'); + } + + if (myelement) { + myelement.scrollIntoView({ behavior: 'smooth' }); + } + } else { @@ -3406,6 +3417,14 @@ function GestionAdministrative(props) { return; } + + var validRegex = /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$/; + if (!one_email_part.match(validRegex)) { + alert("L'adresse email est invalide."); + return; + } + + var one_phone_part = "" if (document.getElementById("one_phone_part") && document.getElementById("one_phone_part").value != "") { one_phone_part = document.getElementById("one_phone_part").value; @@ -3618,7 +3637,7 @@ function GestionAdministrative(props) {
- Date Debut + Date Debut * -
Date Fin +
Date Fin *