You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$picker.val($picker.data('daterangepicker').startDate.format('DD/MM/YYYY HH:mm')+' à '+$picker.data('daterangepicker').endDate.format('DD/MM/YYYY HH:mm'));
$picker.val($picker.data('daterangepicker').startDate.format('DD/MM/YYYY HH:mm')+' à '+$picker.data('daterangepicker').endDate.format('DD/MM/YYYY HH:mm'));
26
+
}else{
27
+
$picker.val($picker.data('daterangepicker').startDate.format('DD/MM/YYYY')+' au '+$picker.data('daterangepicker').endDate.format('DD/MM/YYYY'));
28
+
}
26
29
}
27
30
28
31
$picker.daterangepicker({
@@ -35,19 +38,19 @@ function initDatesRange($picker, $from, $to, withTime)
Copy file name to clipboardExpand all lines: templates/organization/home.html.twig
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -8,10 +8,10 @@
8
8
<h1>{{ app.user }}</h1>
9
9
10
10
<p>Semaine actuelle : du {{ 'this week' | date('d/m/Y') }} au {{ 'sunday this week' | date('d/m/Y') }}</p>
11
-
<p><buttonclass="btn btn-primary"role="button"disabled>Afficher les disponibilités de mes bénévoles pour la semaine actuelle</button></p>
11
+
<p><aclass="btn btn-primary"role="button"href="{{ path('planning', {'organization[]': app.user.id}) }}">Afficher les disponibilités de mes bénévoles pour la semaine actuelle</a></p>
12
12
13
13
<p>Semaine prochaine : du {{ 'next week' | date('d/m/Y') }} au {{ 'sunday next week' | date('d/m/Y') }}</p>
14
-
<p><buttonclass="btn btn-primary"role="button"disabled>Afficher les disponibilités de mes bénévoles pour la semaine prochaine</button></p>
14
+
<p><aclass="btn btn-primary"role="button"href="{{ path('planning', {'organization[]': app.user.id, 'from': 'monday next week' | date('Y-m-d\\T00:00:00')}) }}">Afficher les disponibilités de mes bénévoles pour la semaine prochaine</a></p>
0 commit comments