forked from ScoDoc/ScoDoc
Assiduité : fix bug module selector signal_assiduites_group
This commit is contained in:
parent
e56cbfc5a2
commit
21b2e0f582
@ -80,7 +80,11 @@
|
||||
{% include "assiduites/widgets/toast.j2" %}
|
||||
|
||||
{{ minitimeline|safe }}
|
||||
|
||||
<style>
|
||||
#moduleimpl_select {
|
||||
max-width: 200px;
|
||||
}
|
||||
</style>
|
||||
<section id="content">
|
||||
|
||||
<div class="no-display">
|
||||
@ -102,8 +106,7 @@
|
||||
<div class="infos-button">Groupes : {{grp|safe}}</div>
|
||||
<div class="infos-button" style="margin-left: 24px;">Date : <span style="margin-left: 8px;"
|
||||
id="datestr"></span>
|
||||
<input type="text" name="tl_date" id="tl_date" value="{{ date }}"
|
||||
onchange="updateDate()">
|
||||
<input type="text" name="tl_date" id="tl_date" value="{{ date }}" onchange="updateDate()">
|
||||
</div>
|
||||
</div>
|
||||
</fieldset>
|
||||
|
@ -2181,12 +2181,8 @@ def _module_selector(formsemestre: FormSemestre, moduleimpl_id: int = None) -> s
|
||||
"""
|
||||
# récupération des ues du semestre
|
||||
ntc: NotesTableCompat = res_sem.load_formsemestre_results(formsemestre)
|
||||
ues = ntc.get_ues_stat_dict()
|
||||
|
||||
modimpls_list: list[dict] = []
|
||||
for ue in ues:
|
||||
# Ajout des moduleimpl de chaque ue dans la liste des moduleimpls
|
||||
modimpls_list += ntc.get_modimpls_dict(ue_id=ue["ue_id"])
|
||||
modimpls_list: list[dict] = ntc.get_modimpls_dict()
|
||||
|
||||
# prévoie la sélection par défaut d'un moduleimpl s'il a été passé en paramètre
|
||||
selected = "" if moduleimpl_id is not None else "selected"
|
||||
|
Loading…
Reference in New Issue
Block a user