Fügt die Anzeige des letzten Trainingsdatums und einen Sortiermechanismus in der Mitgliederstatistik hinzu. Aktualisiert die Backend-Logik zur Berechnung des letzten Trainings und passt die Benutzeroberfläche in TrainingStatsView.vue entsprechend an.

This commit is contained in:
Torsten Schulz (local)
2025-08-31 21:32:03 +02:00
parent a08588a075
commit 51d3087006
2 changed files with 13 additions and 0 deletions

View File

@@ -48,6 +48,12 @@
<span class="sort-icon">{{ getSortIcon('participationTotal') }}</span>
</div>
</th>
<th @click="sortBy('lastTrainingTs')" class="sortable-header">
<div class="header-content">
<span>Letztes Training</span>
<span class="sort-icon">{{ getSortIcon('lastTrainingTs') }}</span>
</div>
</th>
<th>Aktionen</th>
</tr>
</thead>
@@ -58,6 +64,7 @@
<td>{{ member.participation12Months }}</td>
<td>{{ member.participation3Months }}</td>
<td>{{ member.participationTotal }}</td>
<td>{{ formatDate(member.lastTraining) || '-' }}</td>
<td>
<button @click="showMemberDetails(member)" class="btn-primary btn-small">
Details anzeigen