Fix controle

This commit is contained in:
mckmonster 2024-08-03 12:01:20 +02:00
parent 60c7958066
commit c00aac5b79
2 changed files with 5 additions and 5 deletions

View file

@ -68,7 +68,7 @@ class NoteManager {
// echo var_dump($matieres);
$classes = $this->listManager->getOne('ListeClasses');
// echo var_dump($classes);
return $this->wiki->render('@meeo/edu_controle.twig', ['matieres' => $matieres['nodes'], 'classes' => $classes['nodes'], 'eleves' => $eleves]);
return $this->wiki->render('@meeo/edu_controle.twig', ['matieres' => $matieres['label'], 'classes' => $classes['label'], 'eleves' => $eleves]);
}
public function createNote($intitule, $eleve, $matiere, $note, $coef) {

View file

@ -11,8 +11,8 @@
<label class="control-label col-sm-2" for="matiere">Matière:</label>
<div class="col-sm-10">
<select class="form-control" id="matiere" name="matiere" required>
{% for matiere in matieres %}
<option value="{{ matiere['id'] }}">{{ matiere['label'] }}</option>
{% for id, matiere in matieres %}
<option value="{{ id }}">{{ matiere }}</option>
{% endfor %}
</select>
</div>
@ -21,8 +21,8 @@
<label class="control-label col-sm-2" for="classe">Classe:</label>
<div class="col-sm-10">
<select class="form-control" id="classe" name="classe" required>
{% for classe in classes %}
<option value="{{ classe['id'] }}" >{{ classe['label'] }}</option>
{% for id, classe in classes %}
<option value="{{ id }}" >{{ classe }}</option>
{% endfor %}
</select>
</div>