intégration bulletin dans template std

This commit is contained in:
Emmanuel Viennet 2021-12-06 21:19:40 +01:00
parent 3b30a67b17
commit fa4dcb3169
2 changed files with 78 additions and 80 deletions

View File

@ -1,16 +1,12 @@
<!DOCTYPE html> {% extends "sco_page.html" %}
<html lang="fr">
<head> {% block styles %}
<meta charset="UTF-8"> {{super()}}
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="Relevé de notes d'un semestre">
<title>Relevé de notes</title>
<link rel="stylesheet" href="/ScoDoc/static/css/bulletin-but.css"> <link rel="stylesheet" href="/ScoDoc/static/css/bulletin-but.css">
</head> {% endblock %}
{% block app_content %}
<body spellcheck=true contenteditable=//true>
<div class="wait"></div> <div class="wait"></div>
<main class="releve"> <main class="releve">
<!---------------------------> <!--------------------------->
@ -81,12 +77,12 @@
</section> </section>
</main> </main>
{% endblock %}
{% block scripts %}
{{ super() }}
<script> <script>
let dataSrc = "{{bul_url|safe}}"; let dataSrc = "{{bul_url|safe}}";
</script> </script>
<script src="/ScoDoc/static/js/bulletin-but.js"></script> <script src="/ScoDoc/static/js/bulletin-but.js"></script>
{% endblock %}
</body>
</html>

View File

@ -137,6 +137,7 @@ from app.scodoc.gen_tables import GenTable
from app.scodoc.sco_pdf import PDFLOCK from app.scodoc.sco_pdf import PDFLOCK
from app.scodoc.sco_permissions import Permission from app.scodoc.sco_permissions import Permission
from app.scodoc.TrivialFormulator import TrivialFormulator from app.scodoc.TrivialFormulator import TrivialFormulator
from app.views import ScoData
def sco_publish(route, function, permission, methods=["GET"]): def sco_publish(route, function, permission, methods=["GET"]):
@ -304,6 +305,7 @@ def formsemestre_bulletinetud(
etudid=etudid, etudid=etudid,
format="json", format="json",
), ),
sco=ScoData(),
) )
return sco_bulletins.formsemestre_bulletinetud( return sco_bulletins.formsemestre_bulletinetud(