forked from ScoDoc/ScoDoc
Assiduites : bug fix visu_assi.j2
This commit is contained in:
parent
559fd82e52
commit
a9d30def6b
@ -3,6 +3,7 @@
|
|||||||
{% block scripts %}
|
{% block scripts %}
|
||||||
{{ super() }}
|
{{ super() }}
|
||||||
<script src="{{scu.STATIC_DIR}}/js/etud_info.js"></script>
|
<script src="{{scu.STATIC_DIR}}/js/etud_info.js"></script>
|
||||||
|
<script src="{{scu.STATIC_DIR}}/js/date_utils.js"></script>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block app_content %}
|
{% block app_content %}
|
||||||
@ -31,8 +32,8 @@
|
|||||||
const group_ids = "{{group_ids}}";
|
const group_ids = "{{group_ids}}";
|
||||||
|
|
||||||
function stats() {
|
function stats() {
|
||||||
const deb = document.querySelector('#stats_date_debut').value;
|
const deb = Date.fromFRA(document.querySelector('#stats_date_debut').value);
|
||||||
const fin = document.querySelector('#stats_date_fin').value;
|
const fin = Date.fromFRA(document.querySelector('#stats_date_fin').value);
|
||||||
location.href = `VisualisationAssiduitesGroupe?group_ids=${group_ids}&date_debut=${deb}&date_fin=${fin}`;
|
location.href = `VisualisationAssiduitesGroupe?group_ids=${group_ids}&date_debut=${deb}&date_fin=${fin}`;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1019,7 +1019,7 @@ def visu_assi_group():
|
|||||||
short=False,
|
short=False,
|
||||||
),
|
),
|
||||||
date_debut=_dateiso_to_datefr(dates["debut"]),
|
date_debut=_dateiso_to_datefr(dates["debut"]),
|
||||||
date_fin=_dateiso_to_datefr(dates["debut"]),
|
date_fin=_dateiso_to_datefr(dates["fin"]),
|
||||||
gr_tit=gr_tit,
|
gr_tit=gr_tit,
|
||||||
group_ids=request.args.get("group_ids", None),
|
group_ids=request.args.get("group_ids", None),
|
||||||
sco=ScoData(formsemestre=groups_infos.get_formsemestre()),
|
sco=ScoData(formsemestre=groups_infos.get_formsemestre()),
|
||||||
|
Loading…
Reference in New Issue
Block a user