fix ElevesAction
This commit is contained in:
parent
000d5ce133
commit
12d9bff044
2 changed files with 3 additions and 3 deletions
|
@ -66,6 +66,6 @@ class EleveManager {
|
|||
|
||||
$classes = $this->listManager->getOne('ListeClasses');
|
||||
// echo "<p>".var_dump($classes)."</p>";
|
||||
return $this->wiki->render('@meeo/edu_eleves.twig', ['eleves' => $eleves, 'classes' => $classes['nodes']]);
|
||||
return $this->wiki->render('@meeo/edu_eleves.twig', ['eleves' => $eleves, 'classes' => $classes['label']]);
|
||||
}
|
||||
}
|
|
@ -10,8 +10,8 @@
|
|||
<div class="col-sm-8">{{ eleve.getNom() }}</div>
|
||||
<div class="col-sm-3">
|
||||
<select id="{{ eleve.getId() }}_classe" name="{{ eleve.getId() }}_classe" class="form-control">
|
||||
{% for classe in classes %}
|
||||
<option value="{{classe['id']}}" {% if eleve.classe == classe['id'] %}selected{% endif %} >{{classe['label']}}</option>
|
||||
{% for id, classe in classes %}
|
||||
<option value="{{id}}" {% if eleve.classe == id %}selected{% endif %} >{{classe}}</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
</div>
|
||||
|
|
Loading…
Reference in a new issue