forked from ScoDoc/ScoDoc
Update opolka/ScoDoc from ScoDoc/ScoDoc #2
@ -170,7 +170,7 @@ class BulletinGeneratorBUTCourt(BulletinGeneratorStandard):
|
||||
self.width_page_avail = 185 * mm # largeur utilisable
|
||||
# Géométrie tableaux
|
||||
self.width_col_ue = 18 * mm
|
||||
self.width_col_ue_titres = 15 * mm
|
||||
self.width_col_ue_titres = 16.5 * mm
|
||||
# Modules
|
||||
self.width_col_code = self.width_col_ue
|
||||
# Niveaux
|
||||
@ -259,19 +259,21 @@ class BulletinGeneratorBUTCourt(BulletinGeneratorStandard):
|
||||
[""] + self.ues_acronyms,
|
||||
["Moyenne"]
|
||||
+ [bul["ues"][ue]["moyenne"]["value"] for ue in self.ues_acronyms],
|
||||
["Bonus"]
|
||||
["dont bonus"]
|
||||
+ [
|
||||
bul["ues"][ue]["bonus"] if bul["ues"][ue]["bonus"] != "00.00" else ""
|
||||
for ue in self.ues_acronyms
|
||||
],
|
||||
["Malus"]
|
||||
["et malus"]
|
||||
+ [
|
||||
bul["ues"][ue]["malus"] if bul["ues"][ue]["malus"] != "00.00" else ""
|
||||
for ue in self.ues_acronyms
|
||||
],
|
||||
["Rang"] + [bul["ues"][ue]["moyenne"]["rang"] for ue in self.ues_acronyms],
|
||||
["Effectif"]
|
||||
+ [bul["ues"][ue]["moyenne"]["total"] for ue in self.ues_acronyms],
|
||||
["Rang"]
|
||||
+ [
|
||||
f'{bul["ues"][ue]["moyenne"]["rang"]} / {bul["ues"][ue]["moyenne"]["total"]}'
|
||||
for ue in self.ues_acronyms
|
||||
],
|
||||
["ECTS"]
|
||||
+ [
|
||||
f'{self.decision_ues[ue]["ects"]:g}' if ue in self.decision_ues else ""
|
||||
@ -496,17 +498,17 @@ class BulletinGeneratorBUTCourt(BulletinGeneratorStandard):
|
||||
|
||||
def boite_decisions_jury(self):
|
||||
"""La boite en bas à droite avec jury"""
|
||||
txt = f"""ECTS acquis : {self.ects_total:g}<br/>"""
|
||||
txt = f"""ECTS acquis en BUT : <b>{self.ects_total:g}</b><br/>"""
|
||||
if self.bul["semestre"]["decision_annee"]:
|
||||
txt += f"""
|
||||
Jury tenu le {
|
||||
datetime.datetime.fromisoformat(self.bul["semestre"]["decision_annee"]["date"]).strftime("%d/%m/%Y à %H:%M")
|
||||
datetime.datetime.fromisoformat(self.bul["semestre"]["decision_annee"]["date"]).strftime("%d/%m/%Y")
|
||||
}, année BUT <b>{self.bul["semestre"]["decision_annee"]["code"]}</b>.
|
||||
<br/>
|
||||
"""
|
||||
if self.bul["semestre"]["autorisation_inscription"]:
|
||||
txt += (
|
||||
"Autorisé à s'inscrire en <b>"
|
||||
"<br/>Autorisé à s'inscrire en <b>"
|
||||
+ ", ".join(
|
||||
[
|
||||
f"S{aut['semestre_id']}"
|
||||
|
@ -100,13 +100,13 @@
|
||||
{% endfor %}
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Bonus</td>
|
||||
<td>dont bonus</td>
|
||||
{% for ue in ues_acronyms %}
|
||||
<td class="col_ue">{{bul.ues[ue].bonus if bul.ues[ue].bonus != "00.00" else ""}}</td>
|
||||
{% endfor %}
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Malus</td>
|
||||
<td>et malus</td>
|
||||
{% for ue in ues_acronyms %}
|
||||
<td class="col_ue">{{bul.ues[ue].malus if bul.ues[ue].malus != "00.00" else ""}}</td>
|
||||
{% endfor %}
|
||||
@ -114,13 +114,7 @@
|
||||
<tr>
|
||||
<td>Rang</td>
|
||||
{% for ue in ues_acronyms %}
|
||||
<td class="col_ue">{{bul.ues[ue].moyenne.rang}}</td>
|
||||
{% endfor %}
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Effectif</td>
|
||||
{% for ue in ues_acronyms %}
|
||||
<td class="col_ue">{{bul.ues[ue].moyenne.total}}</td>
|
||||
<td class="col_ue">{{bul.ues[ue].moyenne.rang}} / {{bul.ues[ue].moyenne.total}}</td>
|
||||
{% endfor %}
|
||||
</tr>
|
||||
<tr>
|
||||
@ -157,18 +151,18 @@
|
||||
</div>
|
||||
|
||||
<div id="situation">
|
||||
<div>ECTS acquis : {{ects_total}}</div>
|
||||
<div>ECTS acquis en BUT : <b>{{"%g"|format(ects_total)}}</b></div>
|
||||
<div class="descr_jury">
|
||||
{% if bul.semestre.decision_annee %}
|
||||
Jury tenu le {{
|
||||
datetime.datetime.fromisoformat(bul.semestre.decision_annee.date).strftime("%d/%m/%Y à %H:%M")
|
||||
datetime.datetime.fromisoformat(bul.semestre.decision_annee.date).strftime("%d/%m/%Y")
|
||||
}},
|
||||
année BUT {{bul.semestre.decision_annee.code}}.
|
||||
année BUT <b>{{bul.semestre.decision_annee.code}}</b>.
|
||||
{% endif %}
|
||||
{% set virg = joiner(", ") %}
|
||||
{% for aut in bul.semestre.autorisation_inscription -%}
|
||||
{% if loop.first %}
|
||||
Autorisé à s'inscrire en
|
||||
<br>Autorisé à s'inscrire en
|
||||
{% endif %}
|
||||
{{- virg() }}S{{aut.semestre_id -}}
|
||||
{%- if loop.last -%}
|
||||
|
@ -1,7 +1,7 @@
|
||||
# -*- mode: python -*-
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
SCOVERSION = "9.6.18"
|
||||
SCOVERSION = "9.6.19"
|
||||
|
||||
SCONAME = "ScoDoc"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user