Fix controle
This commit is contained in:
parent
60c7958066
commit
c00aac5b79
2 changed files with 5 additions and 5 deletions
|
@ -68,7 +68,7 @@ class NoteManager {
|
||||||
// echo var_dump($matieres);
|
// echo var_dump($matieres);
|
||||||
$classes = $this->listManager->getOne('ListeClasses');
|
$classes = $this->listManager->getOne('ListeClasses');
|
||||||
// echo var_dump($classes);
|
// 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) {
|
public function createNote($intitule, $eleve, $matiere, $note, $coef) {
|
||||||
|
|
|
@ -11,8 +11,8 @@
|
||||||
<label class="control-label col-sm-2" for="matiere">Matière:</label>
|
<label class="control-label col-sm-2" for="matiere">Matière:</label>
|
||||||
<div class="col-sm-10">
|
<div class="col-sm-10">
|
||||||
<select class="form-control" id="matiere" name="matiere" required>
|
<select class="form-control" id="matiere" name="matiere" required>
|
||||||
{% for matiere in matieres %}
|
{% for id, matiere in matieres %}
|
||||||
<option value="{{ matiere['id'] }}">{{ matiere['label'] }}</option>
|
<option value="{{ id }}">{{ matiere }}</option>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
|
@ -21,8 +21,8 @@
|
||||||
<label class="control-label col-sm-2" for="classe">Classe:</label>
|
<label class="control-label col-sm-2" for="classe">Classe:</label>
|
||||||
<div class="col-sm-10">
|
<div class="col-sm-10">
|
||||||
<select class="form-control" id="classe" name="classe" required>
|
<select class="form-control" id="classe" name="classe" required>
|
||||||
{% for classe in classes %}
|
{% for id, classe in classes %}
|
||||||
<option value="{{ classe['id'] }}" >{{ classe['label'] }}</option>
|
<option value="{{ id }}" >{{ classe }}</option>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue