diff --git a/frontend/src/pages/GoalsPage.jsx b/frontend/src/pages/GoalsPage.jsx index 5492acb..4033f46 100644 --- a/frontend/src/pages/GoalsPage.jsx +++ b/frontend/src/pages/GoalsPage.jsx @@ -89,6 +89,7 @@ export default function GoalsPage() { priority: 2, target_value: '', unit: 'kg', + start_date: new Date().toISOString().split('T')[0], // Default to today target_date: '', name: '', description: '', @@ -666,6 +667,11 @@ export default function GoalsPage() {
Start:{' '} {goal.start_value} {goal.unit} + {goal.start_date && ( + + ({dayjs(goal.start_date).format('DD.MM.YY')}) + + )}
Aktuell:{' '} @@ -1085,6 +1091,29 @@ export default function GoalsPage() {
+ {/* Startdatum */} +
+ + setFormData(f => ({ ...f, start_date: e.target.value }))} + /> +
+ Startwert wird automatisch aus historischen Daten ermittelt +
+
+ {/* Zieldatum */}