2021-12-06 21:19:40 +01:00
|
|
|
{% extends "sco_page.html" %}
|
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 %}
|
2021-12-06 20:58:39 +01:00
|
|
|
|
2021-12-18 02:30:47 +01:00
|
|
|
<releve-but></releve-but>
|
|
|
|
<script src="/ScoDoc/static/js/releve-but.js"></script>
|
2021-12-06 21:19:40 +01:00
|
|
|
<script>
|
2021-12-21 15:10:49 +01:00
|
|
|
let dataSrc = "{{bul_url|safe}}";
|
2021-12-18 02:30:47 +01:00
|
|
|
fetch(dataSrc)
|
|
|
|
.then(r => { return r.json() })
|
|
|
|
.then(json => {
|
2021-12-18 03:32:18 +01:00
|
|
|
let releve = document.querySelector("releve-but");
|
|
|
|
releve.showData = json;
|
2021-12-20 15:39:43 +01:00
|
|
|
// Syle custom à ajouter
|
|
|
|
let style = document.createElement("style");
|
|
|
|
style.textContent = `
|
|
|
|
.module>div,
|
|
|
|
.dateInscription,
|
|
|
|
.numerosEtudiant,
|
|
|
|
.dateNaissance{
|
2021-12-21 15:10:49 +01:00
|
|
|
display: none;
|
2021-12-20 15:39:43 +01:00
|
|
|
}`;
|
|
|
|
releve.shadowRoot.appendChild(style);
|
2021-12-18 02:30:47 +01:00
|
|
|
})
|
2021-12-06 21:19:40 +01:00
|
|
|
</script>
|
2021-12-21 15:10:49 +01:00
|
|
|
{% endblock %}
|