-
+
{props.formation.cpf && String(props.formation.cpf) === String("1") &&
OUI Éligible au CPF
@@ -618,16 +628,24 @@ const Formation = (props) => {
onClick={(e) => {
e.preventDefault();
+ if (props.formation.url && props.formation.url.length > 5) {
- window.open(
- "/Display-Detail-formation/" + props.formation.internal_url + "/Information",
- '_blank'
- );
+ window.open(
+ props.formation.url,
+ '_blank'
+ );
+ } else {
+
+ window.open(
+ "/Display-Detail-formation/" + props.formation.internal_url + "/Information",
+ '_blank'
+ );
+ }
}}
- >Se renseigner
+ >Se renseigner
diff --git a/src/components/GestionAdministrative.js b/src/components/GestionAdministrative.js
index a603212..46d9fe9 100644
--- a/src/components/GestionAdministrative.js
+++ b/src/components/GestionAdministrative.js
@@ -1955,7 +1955,7 @@ function GestionAdministrative(props) {
axios.post(myurl, form).then(res => {
- if (res.data.status != "false") {
+ if (String(res.data.status) === "true") {
//console.log(" In GetAttendee res.data.status = " + res.data.status);
console.log(" In GetAttendee res.data.message r_class = " + res.data.message);
setGetAttendee_api("true");
@@ -2376,10 +2376,10 @@ function GestionAdministrative(props) {
{(JSON.parse(session).date_debut).substring(0, 10)} au {(JSON.parse(session).date_fin).substring(0, 10)} -
{(JSON.parse(session).distantiel) === "1" && " A Distance - "}
{(JSON.parse(session).presentiel) === "1" && (JSON.parse(session).adresse) && " En Présentiel - " + (JSON.parse(session).adresse)}
- {(JSON.parse(session).presentiel) === "1" && (!JSON.parse(session).adresse) && " En Présentiel - " }
- {(JSON.parse(session).code_postal) && " "+(JSON.parse(session).code_postal) }
-
-
+ {(JSON.parse(session).presentiel) === "1" && (!JSON.parse(session).adresse) && " En Présentiel - "}
+ {(JSON.parse(session).code_postal) && " " + (JSON.parse(session).code_postal)}
+
+
@@ -3005,7 +3005,7 @@ function GestionAdministrative(props) {
{String(display_detail_insc) === "1" && mysession &&
Detail inscription
-
+ {String(GetAttendee_api) === "true" &&
@@ -3366,7 +3366,13 @@ function GestionAdministrative(props) {
-
+
}
+
+ {String(GetAttendee_api) === "false" &&
+ {GetAttendee_message}
+
}
+
+
}