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,18 +1,14 @@
<!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"> <link rel="stylesheet" href="/ScoDoc/static/css/bulletin-but.css">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> {% endblock %}
<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">
</head>
<body spellcheck=true contenteditable=//true> {% block app_content %}
<div class="wait"></div>
<main class="releve"> <div class="wait"></div>
<main class="releve">
<!---------------------------> <!--------------------------->
<!-- Info. étudiant --> <!-- Info. étudiant -->
<!---------------------------> <!--------------------------->
@ -80,13 +76,13 @@
<div class=sae></div> <div class=sae></div>
</section> </section>
</main> </main>
{% endblock %}
<script> {% block scripts %}
{{ super() }}
<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(