2023-04-17 15:44:55 +02:00
|
|
|
{# -*- mode: jinja-html -*- #}
|
|
|
|
{% include "assiduites/toast.j2" %}
|
2023-04-19 20:58:15 +02:00
|
|
|
{% include "assiduites/alert.j2" %}
|
|
|
|
{% include "assiduites/prompt.j2" %}
|
2023-06-12 17:54:30 +02:00
|
|
|
{% include "assiduites/conflict.j2" %}
|
2023-04-17 15:44:55 +02:00
|
|
|
<div id="page-assiduite-content">
|
|
|
|
{% block content %}
|
|
|
|
<h2>Signalement de l'assiduité de <span class="rouge">{{sco.etud.nomprenom}}</span></h2>
|
|
|
|
|
|
|
|
<div class="infos">
|
|
|
|
Date: <span id="datestr"></span>
|
2023-05-30 11:47:59 +02:00
|
|
|
<input type="date" name="tl_date" id="tl_date" value="{{ date }}">
|
2023-04-17 15:44:55 +02:00
|
|
|
</div>
|
|
|
|
|
2023-05-17 20:18:02 +02:00
|
|
|
{{timeline|safe}}
|
2023-04-17 15:44:55 +02:00
|
|
|
|
|
|
|
|
|
|
|
<div>
|
2023-06-12 17:54:30 +02:00
|
|
|
{{moduleimpl_select | safe }}
|
2023-04-19 20:58:15 +02:00
|
|
|
<button class="btn" onclick="fastJustify(getCurrentAssiduite(etudid))" id="justif-rapide">Justifier</button>
|
2023-04-17 15:44:55 +02:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="btn_group">
|
2023-04-25 22:59:06 +02:00
|
|
|
<button class="btn" onclick="setTimeLineTimes({{morning}},{{afternoon}})">Journée</button>
|
|
|
|
<button class="btn" onclick="setTimeLineTimes({{morning}},{{lunch}})">Matin</button>
|
|
|
|
<button class="btn" onclick="setTimeLineTimes({{lunch}},{{afternoon}})">Après-midi</button>
|
2023-04-17 15:44:55 +02:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="etud_holder">
|
|
|
|
<div id="etud_row_{{sco.etud.id}}">
|
|
|
|
<div class="index"></div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2023-06-12 17:54:30 +02:00
|
|
|
<hr>
|
|
|
|
{{diff | safe}}
|
|
|
|
|
|
|
|
<div class="legende">
|
|
|
|
<h3>Explication diverses</h3>
|
|
|
|
<p>
|
|
|
|
Si la période indiquée par la timeline provoque un conflit d'assiduité pour un étudiant sa ligne deviendra
|
|
|
|
rouge.
|
|
|
|
<br>
|
|
|
|
Dans ce cas il faut résoudre manuellement le conflit : cliquez sur un des boutons d'assiduités pour ouvrir
|
|
|
|
le
|
|
|
|
résolveur de conflit.
|
|
|
|
<br>
|
|
|
|
Correspondance des couleurs :
|
|
|
|
</p>
|
|
|
|
<ul>
|
|
|
|
<li>Vert -> présence de l'étudiant lors de la période</li>
|
|
|
|
<li>Orange -> retard de l'étudiant lors de la période</li>
|
|
|
|
<li>Rouge -> absence de l'étudiant lors de la période</li>
|
|
|
|
<li>Hachure Bleu -> l'assiduité est justifiée par un justificatif valide</li>
|
|
|
|
<li>Hachure Rouge -> l'assiduité est justifiée par un justificatif non valide / en attente de validation
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
2023-04-17 15:44:55 +02:00
|
|
|
|
|
|
|
|
|
|
|
<!-- Ajout d'un conteneur pour le loader -->
|
|
|
|
<div class="loader-container" id="loaderContainer">
|
|
|
|
<div class="loader"></div>
|
|
|
|
</div>
|
|
|
|
|
2023-04-19 20:58:15 +02:00
|
|
|
|
2023-04-17 15:44:55 +02:00
|
|
|
|
|
|
|
<script>
|
|
|
|
const etudid = {{ sco.etud.id }};
|
2023-05-30 11:47:59 +02:00
|
|
|
const nonWorkDays = [{{ nonworkdays| safe }}];
|
|
|
|
|
2023-04-17 15:44:55 +02:00
|
|
|
setupDate(() => {
|
2023-05-30 11:47:59 +02:00
|
|
|
if (updateDate()) {
|
|
|
|
actualizeEtud(etudid);
|
2023-06-13 16:25:45 +02:00
|
|
|
updateSelect();
|
|
|
|
onlyAbs();
|
2023-05-30 11:47:59 +02:00
|
|
|
}
|
2023-04-17 15:44:55 +02:00
|
|
|
});
|
|
|
|
|
2023-05-30 11:47:59 +02:00
|
|
|
|
2023-04-19 20:58:15 +02:00
|
|
|
setupTimeLine(() => {
|
|
|
|
updateJustifyBtn();
|
|
|
|
});
|
|
|
|
|
2023-04-17 15:44:55 +02:00
|
|
|
updateDate();
|
|
|
|
|
|
|
|
getSingleEtud({{ sco.etud.id }});
|
|
|
|
actualizeEtud({{ sco.etud.id }});
|
|
|
|
updateSelect()
|
|
|
|
|
2023-04-19 20:58:15 +02:00
|
|
|
updateJustifyBtn();
|
2023-04-17 15:44:55 +02:00
|
|
|
|
|
|
|
|
2023-04-19 20:58:15 +02:00
|
|
|
function setTimeLineTimes(a, b) {
|
|
|
|
setPeriodValues(a, b);
|
|
|
|
updateJustifyBtn();
|
|
|
|
|
2023-04-17 15:44:55 +02:00
|
|
|
}
|
|
|
|
|
2023-06-12 17:54:30 +02:00
|
|
|
window.forceModule = "{{ forcer_module }}"
|
|
|
|
window.forceModule = window.forceModule == "True" ? true : false
|
|
|
|
|
2023-04-19 20:58:15 +02:00
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
|
|
<style>
|
2023-04-17 15:44:55 +02:00
|
|
|
.justifie {
|
|
|
|
background-color: rgb(104, 104, 252);
|
|
|
|
color: whitesmoke;
|
|
|
|
}
|
2023-06-12 17:54:30 +02:00
|
|
|
|
|
|
|
fieldset {
|
|
|
|
outline: none;
|
|
|
|
border: none;
|
|
|
|
}
|
2023-04-17 15:44:55 +02:00
|
|
|
</style>
|
|
|
|
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
</div>
|