diff --git a/app/forms/main/config_assiduites.py b/app/forms/main/config_assiduites.py
index 26126f2e6..1c18135d5 100644
--- a/app/forms/main/config_assiduites.py
+++ b/app/forms/main/config_assiduites.py
@@ -30,7 +30,7 @@ Formulaire configuration Module Assiduités
"""
from flask_wtf import FlaskForm
-from wtforms import SubmitField
+from wtforms import SubmitField, DecimalField
from wtforms.fields.simple import StringField
from wtforms.widgets import TimeInput
import datetime
@@ -82,5 +82,7 @@ class ConfigAssiduitesForm(FlaskForm):
lunch_time = TimeField("Heure de midi (date pivot entre Matin et Après Midi)")
afternoon_time = TimeField("Fin de la journée")
+ tick_time = DecimalField("Granularité de la Time Line (temps en minutes)", places=0)
+
submit = SubmitField("Valider")
cancel = SubmitField("Annuler", render_kw={"formnovalidate": True})
diff --git a/app/static/js/assiduites.js b/app/static/js/assiduites.js
index 3848af838..2a2325603 100644
--- a/app/static/js/assiduites.js
+++ b/app/static/js/assiduites.js
@@ -439,9 +439,9 @@ function hideLoader() {
*/
function toTime(time) {
let heure = Math.floor(time);
- let minutes = (time - heure) * 60;
- if (minutes < 1) {
- minutes = "00";
+ let minutes = Math.round((time - heure) * 60);
+ if (minutes < 10) {
+ minutes = `0${minutes}`;
}
if (heure < 10) {
heure = `0${heure}`;
@@ -997,7 +997,6 @@ function generateEtudRow(