From f12db76f480902d01391f9b44d90e0d4f9c4e995 Mon Sep 17 00:00:00 2001 From: PxlLoewe <72106766+PxlLoewe@users.noreply.github.com> Date: Tue, 22 Jul 2025 19:31:21 -0700 Subject: [PATCH] typos und link zu adminuser in event tabelle --- .../(app)/admin/event/_components/Form.tsx | 123 ++++++++++++------ .../app/(app)/events/_components/Modal.tsx | 46 +++---- apps/hub/app/(app)/resources/page.tsx | 5 +- 3 files changed, 106 insertions(+), 68 deletions(-) diff --git a/apps/hub/app/(app)/admin/event/_components/Form.tsx b/apps/hub/app/(app)/admin/event/_components/Form.tsx index 19c8b94b..eab98338 100644 --- a/apps/hub/app/(app)/admin/event/_components/Form.tsx +++ b/apps/hub/app/(app)/admin/event/_components/Form.tsx @@ -25,6 +25,7 @@ import { AppointmentModal } from "./AppointmentModal"; import { ParticipantModal } from "./ParticipantModal"; import { ColumnDef } from "@tanstack/react-table"; import toast from "react-hot-toast"; +import Link from "next/link"; export const Form = ({ event }: { event?: Event }) => { const { data: session } = useSession(); @@ -72,10 +73,10 @@ export const Form = ({ event }: { event?: Event }) => { })} className="grid grid-cols-6 gap-3" > -
+

- Allgemeines + Allgemeines

{
{form.watch("hasPresenceEvents") ? ( -
+
{ }} leftOfSearch={

- Termine + Termine

} rightOfSearch={ @@ -210,7 +211,7 @@ export const Form = ({ event }: { event?: Event }) => { accessorKey: "Participants", cell: ({ row }) => (
- + {row.original.Participants.length}
), @@ -247,12 +248,12 @@ export const Form = ({ event }: { event?: Event }) => {
) : null} {!form.watch("hasPresenceEvents") ? ( -
+
- Teilnehmer + Teilnehmer } searchFields={["User.firstname", "User.lastname"]} @@ -264,46 +265,82 @@ export const Form = ({ event }: { event?: Event }) => { include={{ User: true, }} - columns={[ - { - header: "Vorname", - accessorKey: "User.firstname", - }, - { - header: "Nachname", - accessorKey: "User.lastname", - }, - { - header: "Moodle Kurs abgeschlossen", - accessorKey: "finisherMoodleCurseCompleted", - }, - { - header: "Aktionen", - cell: ({ row }) => { - return ( -
- -
- ); + {row.original.User.firstname} + + ); + }, }, - }, - ]} + { + header: "Nachname", + accessorKey: "User.lastname", + cell: ({ row }) => { + return ( + + {row.original.User.lastname} + + ); + }, + }, + { + header: "VAR-Nummer", + accessorKey: "User.publicId", + cell: ({ row }) => { + return ( + + {row.original.User.publicId} + + ); + }, + }, + { + header: "Moodle Kurs abgeschlossen", + accessorKey: "finisherMoodleCurseCompleted", + }, + { + header: "Aktionen", + cell: ({ row }) => { + return ( +
+ +
+ ); + }, + }, + ] as ColumnDef[] + } />
) : null} -
-
+
+
-

{title}

-
-
+

{title}

+
+

Details

-
+
{event.hasPresenceEvents && ( -
+

Termine

-
+
{!!dates.length && !selectedDate && ( <> -

Melde dich zu einem Termin an

+

Melde dich zu einem Termin an