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(
|
departement: Departement = Departement.query.filter_by(
|
||||||
id=formsemestre.dept_id
|
id=formsemestre.dept_id
|
||||||
).first_or_404()
|
).first_or_404()
|
||||||
breakpoint()
|
|
||||||
return render_template(
|
return render_template(
|
||||||
"but/jury_export.j2",
|
"but/jury_export.j2",
|
||||||
datetime=datetime,
|
datetime=datetime,
|
||||||
|
@ -24,13 +24,26 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
let dataSrc = "/ScoDoc/{{dept}}/api/formsemestre/{{formsemestre.id}}/etudiants/long";
|
let dataSrc = "/ScoDoc/{{dept}}/api/formsemestre/{{formsemestre.id}}/etudiants/long";
|
||||||
|
let formsemestres = [];
|
||||||
fetch(dataSrc)
|
fetch(dataSrc)
|
||||||
.then(r => {
|
.then(r => { return r.json(); })
|
||||||
return r.json();
|
|
||||||
})
|
|
||||||
.then(json => {
|
.then(json => {
|
||||||
let etudiants = 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");
|
//let releve = document.querySelector("releve-but");
|
||||||
//releve.showData = json;
|
//releve.showData = json;
|
||||||
// Style custom à ajouter
|
// Style custom à ajouter
|
||||||
|
Loading…
Reference in New Issue
Block a user