[Notes] Rajout de l'affichage pour un élève
This commit is contained in:
parent
4f8b373bf0
commit
a279834374
1 changed files with 9 additions and 1 deletions
|
@ -30,13 +30,21 @@ class NotesAction extends YesWikiAction
|
||||||
$entries = $entryManager->search(['formsIds' => $formId]);
|
$entries = $entryManager->search(['formsIds' => $formId]);
|
||||||
$matieres = $listManager->getOne('ListeMatiere');
|
$matieres = $listManager->getOne('ListeMatiere');
|
||||||
// echo var_dump($eleves);
|
// echo var_dump($eleves);
|
||||||
echo var_dump($entries);
|
// echo var_dump($entries);
|
||||||
// echo var_dump($matieres);
|
// echo var_dump($matieres);
|
||||||
return $this->render('@meeo/edu_notes.twig', [
|
return $this->render('@meeo/edu_notes.twig', [
|
||||||
"eleves" => $eleves,
|
"eleves" => $eleves,
|
||||||
"entries" => $entries,
|
"entries" => $entries,
|
||||||
"matieres" => $matieres,
|
"matieres" => $matieres,
|
||||||
]);
|
]);
|
||||||
|
} else {
|
||||||
|
$entries = $entryManager->search(['formsIds' => $formId]);
|
||||||
|
$matieres = $listManager->getOne('ListeMatiere');
|
||||||
|
|
||||||
|
return $this->render('@meeo/eeleve_notes.twig', [
|
||||||
|
"entries" => $entries,
|
||||||
|
"matieres" => $matieres,
|
||||||
|
]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue