diff --git a/app/static/js/assiduites.js b/app/static/js/assiduites.js index 1074308bb..93f98ba4c 100644 --- a/app/static/js/assiduites.js +++ b/app/static/js/assiduites.js @@ -720,7 +720,57 @@ function setupDate(onchange = null) { //Initialisation du datepicker // sinon on ne peut pas le mettre à jour - $(input).datepicker(); + $(input).datepicker({ + showOn: "button", + buttonImage: "/ScoDoc/static/icons/calendar_img.png", + buttonImageOnly: true, + dateFormat: "dd/mm/yy", + duration: "fast", + firstDay: 1, // Start with Monday + dayNames: [ + "Dimanche", + "Lundi", + "Mardi", + "Mercredi", + "Jeudi", + "Vendredi", + "Samedi", + ], + dayNamesMin: ["Di", "Lu", "Ma", "Me", "Je", "Ve", "Sa"], + dayNamesShort: ["Dim", "Lun", "Mar", "Mer", "Jeu", "Ven", "Sam"], + monthNames: [ + "Janvier", + "Février", + "Mars", + "Avril", + "May", + "Juin", + "Juilet", + "Août", + "Septembre", + "Octobre", + "Novembre", + "Décembre", + ], + monthNamesShort: [ + "Jan", + "Fév", + "Mar", + "Avr", + "Mai", + "Juin", + "Juil", + "Aoû", + "Sep", + "Oct", + "Nov", + "Déc", + ], + }); + $(input).datepicker( + "option", + $.extend({ showMonthAfterYear: false }, $.datepicker.regional["fr"]) + ); if (onchange != null) { $(input).change(onchange); diff --git a/app/templates/assiduites/pages/signal_assiduites_group.j2 b/app/templates/assiduites/pages/signal_assiduites_group.j2 index 2ce3672ee..79feaf215 100644 --- a/app/templates/assiduites/pages/signal_assiduites_group.j2 +++ b/app/templates/assiduites/pages/signal_assiduites_group.j2 @@ -20,7 +20,7 @@
Groupes : {{grp|safe}}
Date : -