feat: add password recovery and everyday workflow improvements

This commit is contained in:
t.indorf
2026-10-12 17:51:50 +02:00
parent 061024d901
commit 661776e609
19 changed files with 1721 additions and 141 deletions
+22 -1
View File
@@ -284,7 +284,17 @@ export default async function PersonalPage({
</div>
{profile && (
<div className="flex flex-wrap gap-2">
<TimeForm profileId={profile.id} />
<TimeForm
key={`${profile.id}-${start}`}
profileId={profile.id}
defaultDate={
tab === "zeit"
? today >= start && today <= end
? today
: start
: today
}
/>
<LeaveForm profileId={profile.id} admin={admin} />
</div>
)}
@@ -645,6 +655,7 @@ export default async function PersonalPage({
"Ist",
"Urlaub / Krankheit",
"Differenz",
"Erfassen",
].map((s) => (
<th key={s} className="pb-3 pr-4 font-medium">
{s}
@@ -682,6 +693,15 @@ export default async function PersonalPage({
>
{formatMinutes(d.balance)}
</td>
<td className="py-3 pl-3">
{editable && d.date <= today ? (
<TimeForm
profileId={profile.id}
defaultDate={d.date}
compact
/>
) : null}
</td>
</tr>
))}
</tbody>
@@ -696,6 +716,7 @@ export default async function PersonalPage({
<td className="pt-4">
{formatMinutes(totals.balance)}
</td>
<td />
</tr>
</tfoot>
</table>