2021-12-28 16:17:07 +01:00
|
|
|
{# -*- mode: jinja-html -*- #}
|
2023-01-30 22:25:17 +01:00
|
|
|
{% extends "sco_page.j2" %}
|
2021-12-06 20:58:39 +01:00
|
|
|
|
2021-12-06 21:19:40 +01:00
|
|
|
{% block styles %}
|
|
|
|
{{super()}}
|
|
|
|
{% endblock %}
|
2021-12-06 20:58:39 +01:00
|
|
|
|
2021-12-06 21:19:40 +01:00
|
|
|
{% block app_content %}
|
2022-03-06 22:40:20 +01:00
|
|
|
|
2023-05-12 10:00:11 +02:00
|
|
|
{% include 'bul_head.j2' %}
|
|
|
|
|
|
|
|
<releve-but></releve-but>
|
|
|
|
|
|
|
|
{% include 'bul_foot.j2' %}
|
|
|
|
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block scripts %}
|
|
|
|
{{super()}}
|
|
|
|
|
|
|
|
<script src="{{scu.STATIC_DIR}}/js/releve-but.js"></script>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
let dataSrc = "{{bul_url|safe}}";
|
|
|
|
fetch(dataSrc)
|
|
|
|
.then(r => { return r.json() })
|
|
|
|
.then(json => {
|
|
|
|
let releve = document.querySelector("releve-but");
|
|
|
|
releve.showData = json;
|
|
|
|
// Syle custom à ajouter
|
|
|
|
let style = document.createElement("style");
|
|
|
|
style.textContent = `
|
|
|
|
.module>div,
|
|
|
|
.dateInscription,
|
|
|
|
.numerosEtudiant,
|
|
|
|
.dateNaissance{
|
|
|
|
display: none;
|
|
|
|
}`;
|
|
|
|
releve.shadowRoot.appendChild(style);
|
|
|
|
});
|
|
|
|
// .catch(error => {
|
|
|
|
// let div = document.createElement("div");
|
|
|
|
// div.innerText = "Une erreur s'est produite lors du transfert des données.";
|
|
|
|
// div.style.fontSize = "24px";
|
|
|
|
// div.style.color = "#d93030";
|
|
|
|
|
|
|
|
// let releve = document.querySelector("releve-but");
|
|
|
|
// releve.after(div);
|
|
|
|
// releve.remove();
|
|
|
|
|
|
|
|
// throw 'Fin du script - données invalides';
|
|
|
|
// });
|
|
|
|
document.querySelector("html").style.scrollBehavior = "smooth";
|
|
|
|
</script>
|
|
|
|
|
|
|
|
{% endblock %}
|