feat: add password recovery and everyday workflow improvements
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user