10/04/2024 - 11h50
parent
fbb2896a06
commit
3b779c4563
|
@ -227,11 +227,11 @@ function SurveyDocument() {
|
|||
const [selected_qcm_value, setselected_qcm_value] = React.useState('');
|
||||
const handleChange_qcm = (event) => {
|
||||
|
||||
console.log(" event.target.name ", event.target.name);
|
||||
|
||||
|
||||
document.getElementsByName(event.target.name)[0].value = event.target.value;
|
||||
|
||||
// setselected_qcm_value(event.target.value);
|
||||
// setselected_qcm_value(event.target.value);
|
||||
change_survey_data(event.target);
|
||||
};
|
||||
|
||||
|
@ -263,7 +263,7 @@ function SurveyDocument() {
|
|||
console.log(" ### sortir settab_variable = ", tab_variable);
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
else {
|
||||
console.log('not checked');
|
||||
|
||||
|
@ -272,11 +272,7 @@ function SurveyDocument() {
|
|||
|
||||
} else {
|
||||
|
||||
|
||||
|
||||
console.log(" PASSS première action ");
|
||||
|
||||
console.log(" Suppression de ", String(tab[1]));
|
||||
|
||||
var new_variable = []
|
||||
for (let i = 0; i < tmp_variable[al].length; i++) {
|
||||
|
@ -288,16 +284,15 @@ function SurveyDocument() {
|
|||
|
||||
tmp_variable[al] = new_variable;
|
||||
|
||||
console.log(" tmp_variable ", tmp_variable);
|
||||
|
||||
|
||||
settab_variable(tmp_variable);
|
||||
console.log(" ### sortir settab_variable = ", tab_variable);
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
console.log(" ### FINNNNNN settab_variable = ", tab_variable);
|
||||
};
|
||||
|
||||
|
||||
|
@ -323,12 +318,28 @@ function SurveyDocument() {
|
|||
<div style={{ "width": "80%", "marginLeft": "10%", "background": "#F2F4F4", overflow: "auto", "paddingBottom": "1rem" }}>
|
||||
<br />
|
||||
<div className="question_box_introduction">
|
||||
{JSON.parse(get_Given_Survey_Data_result).message_introduction}
|
||||
Bonjour {JSON.parse(get_Given_Survey_Data_result).prenom} {JSON.parse(get_Given_Survey_Data_result).nom}
|
||||
|
||||
<nav>
|
||||
{JSON.parse(get_Given_Survey_Data_result).message_introduction}
|
||||
</nav>
|
||||
</div>
|
||||
|
||||
<br />
|
||||
|
||||
|
||||
{String(JSON.parse(get_Given_Survey_Data_result).survey_type) === "pos" && <div className="question_box_entete">
|
||||
Questionnaire de positionnement
|
||||
</div>}
|
||||
|
||||
|
||||
{String(JSON.parse(get_Given_Survey_Data_result).survey_type) === "hot_eval" && <div className="question_box_entete">
|
||||
Questionnaire d'évaluation
|
||||
</div>}
|
||||
|
||||
{String(JSON.parse(get_Given_Survey_Data_result).survey_type) === "cool_eval" && <div className="question_box_entete">
|
||||
Questionnaire d'évaluation
|
||||
</div>}
|
||||
|
||||
<div className="question_box_entete">
|
||||
Formation : {JSON.parse(get_Given_Survey_Data_result).class_title} <br />
|
||||
Code Session : {JSON.parse(get_Given_Survey_Data_result).session_code} <br />
|
||||
|
|
Loading…
Reference in New Issue