diff --git a/apps/dispatch/app/_data/fmsStatusDescription.ts b/apps/dispatch/app/_data/fmsStatusDescription.ts index 2e04da1b..3ca69b0c 100644 --- a/apps/dispatch/app/_data/fmsStatusDescription.ts +++ b/apps/dispatch/app/_data/fmsStatusDescription.ts @@ -10,12 +10,12 @@ export const fmsStatusDescription: { [key: string]: string } = { "7": "Einsatzgebunden", "8": "Bedingt verfügbar", "9": "Fremdanmeldung", - E: "Indent/Abbruch/Einsatzbefehl abgebrochen", - C: "Anmelden zur Übernahme des Einsatzes", - F: "Kommen über Draht", + E: "Einsatzabbruch", + C: "Einsatzübernahme melden", + F: "Kommen Sie über Draht", H: "Fahren auf Wache", J: "Sprechaufforderung", - L: "Lagebericht abgeben", + L: "Geben Sie Lagemeldung", P: "Einsatz mit Polizei/Pause machen", U: "Ungültige Statusfolge", c: "Status korrigieren", 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