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>
<html lang="fr">
{% extends "sco_page.html" %}
<head>
<meta charset="UTF-8">
<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>
{% block styles %}
{{super()}}
<link rel="stylesheet" href="/ScoDoc/static/css/bulletin-but.css">
</head>
{% endblock %}
{% block app_content %}
<body spellcheck=true contenteditable=//true>
<div class="wait"></div>
<main class="releve">
<!--------------------------->
@ -81,12 +77,12 @@
</section>
</main>
{% endblock %}
{% block scripts %}
{{ super() }}
<script>
let dataSrc = "{{bul_url|safe}}";
</script>
<script src="/ScoDoc/static/js/bulletin-but.js"></script>
</body>
</html>
{% endblock %}

View File

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