forked from ScoDoc/ScoDoc
wip
This commit is contained in:
parent
aab014f5ef
commit
a42e23b0ec
@ -23,7 +23,6 @@ def feuille_preparation_jury_but(formsemestre_id: int):
|
||||
departement: Departement = Departement.query.filter_by(
|
||||
id=formsemestre.dept_id
|
||||
).first_or_404()
|
||||
breakpoint()
|
||||
return render_template(
|
||||
"but/jury_export.j2",
|
||||
datetime=datetime,
|
||||
|
@ -24,13 +24,26 @@
|
||||
|
||||
<script>
|
||||
let dataSrc = "/ScoDoc/{{dept}}/api/formsemestre/{{formsemestre.id}}/etudiants/long";
|
||||
let formsemestres = [];
|
||||
fetch(dataSrc)
|
||||
.then(r => {
|
||||
return r.json();
|
||||
})
|
||||
.then(r => { return r.json(); })
|
||||
.then(json => {
|
||||
let etudiants = json;
|
||||
|
||||
etudiants.forEach((etudiant) => {
|
||||
let url =`/ScoDoc/{{dept}}/api/etudiant/nip/${etudiant.code_nip}/formsemestres`;
|
||||
console.log(url);
|
||||
etudiant.formsemestres_id = [];
|
||||
fetch(`/ScoDoc/{{dept}}/api/etudiant/nip/${etudiant.code_nip}/formsemestres`)
|
||||
.then(r => {return r.json; })
|
||||
.then(json => {
|
||||
let forms = json;
|
||||
forms.forEach((formsem) => {
|
||||
if (formsem.is_apc) {
|
||||
etudiant.formsemestres_id.push(formsem.formsemestre_id);
|
||||
}
|
||||
});
|
||||
});
|
||||
});
|
||||
//let releve = document.querySelector("releve-but");
|
||||
//releve.showData = json;
|
||||
// Style custom à ajouter
|
||||
|
Loading…
Reference in New Issue
Block a user