forked from ScoDoc/ScoDoc
Assiduité : signal_assiduites_group : bouton matin/aprem
This commit is contained in:
parent
d7acff9d35
commit
e3344cf424
@ -137,6 +137,10 @@
|
||||
</fieldset>
|
||||
<div style="display: {{'none' if readonly == 'true' else 'block'}};">
|
||||
{{timeline|safe}}
|
||||
<div>
|
||||
<button onclick="setPeriodValues(t_start, t_mid)">Matin</button>
|
||||
<button onclick="setPeriodValues(t_mid, t_end)">Après-Midi</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{% if readonly == "false" %}
|
||||
|
@ -17,6 +17,7 @@
|
||||
const timelineContainer = document.querySelector(".timeline-container");
|
||||
const periodTimeLine = document.querySelector(".period");
|
||||
const t_start = {{ t_start }};
|
||||
const t_mid = {{ t_mid }};
|
||||
const t_end = {{ t_end }};
|
||||
|
||||
const tick_time = 60 / {{ tick_time }};
|
||||
|
@ -2331,6 +2331,7 @@ def _timeline(formsemestre_id: int = None, heures=None) -> str:
|
||||
return render_template(
|
||||
"assiduites/widgets/timeline.j2",
|
||||
t_start=ScoDocSiteConfig.assi_get_rounded_time("assi_morning_time", "08:00:00"),
|
||||
t_mid=ScoDocSiteConfig.assi_get_rounded_time("assi_lunch_time", "13:00:00"),
|
||||
t_end=ScoDocSiteConfig.assi_get_rounded_time("assi_afternoon_time", "18:00:00"),
|
||||
tick_time=ScoDocSiteConfig.get("assi_tick_time", 15),
|
||||
periode_defaut=sco_preferences.get_preference(
|
||||
|
Loading…
Reference in New Issue
Block a user