training-links fix

This commit is contained in:
Klaas 2024-05-29 06:10:22 +02:00
parent 0d51ea3e47
commit c5c8eec27b
1 changed files with 3 additions and 3 deletions

View File

@ -2,11 +2,11 @@
<h1>
<div>
<% if (previousTraining) { %>
<a href="/?date=<%= moment(previousTraining.datum).format('DD.MM.YYYY') %>"> &lt; </a>
<a href="/training?date=<%= moment(previousTraining.datum).format('DD.MM.YYYY') %>"> &lt; </a>
<% } %>
Training <%= training.datum %>
<% if (nextTraining) { %>
<a href="/?date=<%= moment(nextTraining.datum).format('DD.MM.YYYY') %>"> &gt; </a>
<a href="/training?date=<%= moment(nextTraining.datum).format('DD.MM.YYYY') %>"> &gt; </a>
<% } %>
</h1>
</div>
@ -101,7 +101,7 @@
<% } %>
</div>
<form method="GET" action="/">
<form method="GET" action="/training">
<label for="training-date">Datum wählen:</label>
<select id="training-date" name="date" onchange="this.form.submit()">
<% trainingsDates.forEach(date => { %>