Loading view/unicaen-enquete/resultat/resultats.phtml +2 −3 Original line number Diff line number Diff line Loading @@ -353,8 +353,8 @@ $nbElements = count($elements); $brut = []; $header = ["Ligne", "Id"]; foreach ($enquete->getQuestions() as $question) { if ($question->hasNote()) $header[] = 'evaluation_' . $question->getId(); if ($question->hasCommentaire()) $header[] = 'commentaire_' . $question->getId(); if ($question->hasNote()) $header[] = 'evaluation [' . $question->getLibelle() .']'; if ($question->hasCommentaire()) $header[] = 'commentaire [' . $question->getLibelle() . ']'; } foreach ($elements as $element) { $data = []; Loading Loading @@ -420,7 +420,6 @@ $nbElements = count($elements); $('span.export#participation').on('click', function () { let question_id = $(this).data("questionId"); alert(question_id); let header = {0: "Valeur", 1: "Occurence", 2: "Ratio"}; let tableau = participations[question_id]; downloadCSVFromJson('enquete_participations_' + $(this).attr('id') + '_' + Date.now().toString() + '.csv', header, tableau); Loading Loading
view/unicaen-enquete/resultat/resultats.phtml +2 −3 Original line number Diff line number Diff line Loading @@ -353,8 +353,8 @@ $nbElements = count($elements); $brut = []; $header = ["Ligne", "Id"]; foreach ($enquete->getQuestions() as $question) { if ($question->hasNote()) $header[] = 'evaluation_' . $question->getId(); if ($question->hasCommentaire()) $header[] = 'commentaire_' . $question->getId(); if ($question->hasNote()) $header[] = 'evaluation [' . $question->getLibelle() .']'; if ($question->hasCommentaire()) $header[] = 'commentaire [' . $question->getLibelle() . ']'; } foreach ($elements as $element) { $data = []; Loading Loading @@ -420,7 +420,6 @@ $nbElements = count($elements); $('span.export#participation').on('click', function () { let question_id = $(this).data("questionId"); alert(question_id); let header = {0: "Valeur", 1: "Occurence", 2: "Ratio"}; let tableau = participations[question_id]; downloadCSVFromJson('enquete_participations_' + $(this).attr('id') + '_' + Date.now().toString() + '.csv', header, tableau); Loading