diff --git a/src/components/AddClassManual.js b/src/components/AddClassManual.js
index 15ea58f..41905af 100644
--- a/src/components/AddClassManual.js
+++ b/src/components/AddClassManual.js
@@ -2304,12 +2304,17 @@ const AddClassManual = (props) => {
if (mylocaltraining.duration) {
- // document.getElementsByName("duree")[0].value = mylocaltraining.duration;
setp_detail_duree(mylocaltraining.duration);
}
else
setp_detail_duree("");
+ if (mylocaltraining.duration_operationnelle) {
+ setp_detail_duree_operationnelle(mylocaltraining.duration_operationnelle);
+ }
+ else
+ setp_detail_duree_operationnelle("0");
+
//document.getElementsByName("mots_cle")[0].value = "";
if (mylocaltraining.mots_cle) {
@@ -2795,6 +2800,7 @@ const AddClassManual = (props) => {
formData.append('price', price);
formData.append('duration', duree);
formData.append('duration_unit', mytrainingdurationunit);
+ formData.append('duration_operationnelle', p_detail_duree_operationnelle);
formData.append('url', url);
formData.append('lms_class_code', lms_class_code);
formData.append('class_inscription_url', class_inscription_url);
@@ -4689,6 +4695,10 @@ const AddClassManual = (props) => {
const [p_detail_external_code, setp_detail_external_code] = useState("");
const [p_detail_title, setp_detail_title] = useState("");
const [p_detail_duree, setp_detail_duree] = useState("");
+
+ const [p_detail_duree_operationnelle, setp_detail_duree_operationnelle] = useState("");
+
+
const [p_detail_url, setp_detail_url] = useState("");
const [p_detail_lms_class_code, setp_detail_lms_class_code] = useState("");
@@ -9290,7 +9300,8 @@ const AddClassManual = (props) => {
}
- {New_Getall_Parter_bloc_competence_result && New_Getall_Parter_bloc_competence_result.length > 0 &&
+ {props.class_is_ftion_initiale && props.class_is_ftion_initiale === "1" &&
+ New_Getall_Parter_bloc_competence_result && New_Getall_Parter_bloc_competence_result.length > 0 &&
+ {props.class_is_ftion_initiale && props.class_is_ftion_initiale === "1" && <>
+
+
+
+
+
+
+ {
+ setp_detail_duree_operationnelle(e.target.value);
+ }
+ }
+ />
+
+
+
+ >}
diff --git a/src/components/Module_Absence.js b/src/components/Module_Absence.js
index 560729f..4f22d99 100644
--- a/src/components/Module_Absence.js
+++ b/src/components/Module_Absence.js
@@ -895,7 +895,7 @@ const Module_Absence = (props) => {
const [Get_ENT_Apprenant_Total_Heure_result, setGet_ENT_Apprenant_Total_Heure_result] = useState();
function Get_ENT_Apprenant_Total_Heure(event) {
- setlocal_heure_non_justifie();
+ setlocal_heure_non_justifie();
var form = new FormData();
const stored_cookie = getCookie('tokenmysypart');
@@ -1315,55 +1315,103 @@ const Module_Absence = (props) => {
/>
+