1
0
forked from ScoDoc/ScoDoc
ScoDoc/app/templates/but/bulletin.html
2021-12-18 03:32:18 +01:00

33 lines
608 B
HTML

{% extends "sco_page.html" %}
{% block styles %}
{{super()}}
{% endblock %}
{% block app_content %}
<releve-but></releve-but>
{% endblock %}
{% block scripts %}
{{ super() }}
<script src="/ScoDoc/static/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 custome à ajouter
releve.innerHTML += `
<style>
.module>div, .dateInscription{
display: none;
}
</style>`;
})
</script>
{% endblock %}