ScoDoc-Lille/app/templates/assiduites/signal_assiduites_etud.j2

117 lines
3.4 KiB
Plaintext
Raw Normal View History

2023-04-17 15:44:55 +02:00
{# -*- mode: jinja-html -*- #}
<div id="myModal" class="modal">
<div class="modal-content">
<span class="close">&times;</span>
<h2>Veuillez régler le conflit pour poursuivre</h2>
<!-- Ajout de la frise chronologique -->
<div class="modal-timeline">
<div class="time-labels"></div>
<div class="assiduites-container"></div>
</div>
<div class="action-buttons">
<button id="delete" class="btnPrompt" disabled>Supprimer</button>
<button id="split" class="btnPrompt" disabled>Séparer</button>
<button id="edit" class="btnPrompt" disabled>Modifier</button>
</div>
</div>
<div class="modal-assiduite-content">
<h2>Information de l'assiduité sélectionnée</h2>
<div class="infos">
<p>Assiduite id : <span id="modal-assiduite-id">A</span></p>
<p>Etat : <span id="modal-assiduite-etat">B</span></p>
<p>Date de début : <span id="modal-assiduite-deb">C</span></p>
<p>Date de fin: <span id="modal-assiduite-fin">D</span></p>
<p>Module : <span id="modal-assiduite-module">E</span></p>
<p><span id="modal-assiduite-user">F</span></p>
</div>
</div>
</div>
{% include "assiduites/toast.j2" %}
{% include "assiduites/alert.j2" %}
{% include "assiduites/prompt.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>
<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>
{% include "assiduites/moduleimpl_dynamic_selector.j2" %}
<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>
<!-- Ajout d'un conteneur pour le loader -->
<div class="loader-container" id="loaderContainer">
<div class="loader"></div>
</div>
2023-04-17 15:44:55 +02:00
<script>
const etudid = {{ sco.etud.id }};
const nonWorkDays = [{{ nonworkdays| safe }}];
2023-04-17 15:44:55 +02:00
setupDate(() => {
if (updateDate()) {
actualizeEtud(etudid);
updateSelect()
}
2023-04-17 15:44:55 +02:00
});
setupTimeLine(() => {
updateJustifyBtn();
});
2023-04-17 15:44:55 +02:00
updateDate();
getSingleEtud({{ sco.etud.id }});
actualizeEtud({{ sco.etud.id }});
updateSelect()
updateJustifyBtn();
2023-04-17 15:44:55 +02:00
function setTimeLineTimes(a, b) {
setPeriodValues(a, b);
updateJustifyBtn();
2023-04-17 15:44:55 +02:00
}
2023-04-25 22:59:06 +02:00
let forceModule = "{{ forcer_module }}"
forceModule = forceModule == "True" ? true : false
</script>
<style>
2023-04-17 15:44:55 +02:00
.justifie {
background-color: rgb(104, 104, 252);
color: whitesmoke;
}
</style>
{% endblock %}
</div>