DocScoDoc/app/templates/but/bulletin.html
2021-12-18 03:36:00 +01:00

33 lines
619 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.shadowRoot.innerHTML += `
<style>
.module>div, .dateInscription{
display: none;
}
</style>`;
})
</script>
{% endblock %}