added chrom
This commit is contained in:
@@ -11,17 +11,12 @@ interface ParticipantModalProps {
|
||||
ref: RefObject<HTMLDialogElement | null>;
|
||||
}
|
||||
|
||||
export const ParticipantModal = ({
|
||||
participantForm,
|
||||
ref,
|
||||
}: ParticipantModalProps) => {
|
||||
export const ParticipantModal = ({ participantForm, ref }: ParticipantModalProps) => {
|
||||
return (
|
||||
<dialog className="modal" ref={ref}>
|
||||
<div className="modal-box">
|
||||
<form method="dialog">
|
||||
<button className="btn btn-sm btn-circle btn-ghost absolute right-2 top-2">
|
||||
✕
|
||||
</button>
|
||||
<button className="btn btn-sm btn-circle btn-ghost absolute right-2 top-2">✕</button>
|
||||
</form>
|
||||
<h1 className="text-2xl">Teilnehmer bearbeiten</h1>
|
||||
<form
|
||||
@@ -35,21 +30,18 @@ export const ParticipantModal = ({
|
||||
})}
|
||||
className="space-y-1"
|
||||
>
|
||||
<Switch
|
||||
form={participantForm}
|
||||
name="attended"
|
||||
label="Termin Teilgenommen"
|
||||
/>
|
||||
<Switch
|
||||
form={participantForm}
|
||||
name="appointmentCancelled"
|
||||
label="Termin abgesagt"
|
||||
/>
|
||||
<Switch form={participantForm} name="attended" label="Termin Teilgenommen" />
|
||||
<Switch form={participantForm} name="appointmentCancelled" label="Termin abgesagt" />
|
||||
<Switch
|
||||
form={participantForm}
|
||||
name="finisherMoodleCurseCompleted"
|
||||
label="Abschluss-Moodle-Kurs abgeschlossen"
|
||||
/>
|
||||
<Switch
|
||||
form={participantForm}
|
||||
name="inscriptionWorkflowCompleted"
|
||||
label="Anmeldeprozess abgeschlossen (Discord-rollen vergeben)"
|
||||
/>
|
||||
<Switch
|
||||
form={participantForm}
|
||||
name="completetionWorkflowFinished"
|
||||
@@ -60,18 +52,12 @@ export const ParticipantModal = ({
|
||||
|
||||
<p className="w-full flex justify-between">
|
||||
<span>Termin ausgewählt am</span>
|
||||
<span>
|
||||
{new Date(
|
||||
participantForm.watch("enscriptionDate"),
|
||||
).toLocaleString()}
|
||||
</span>
|
||||
<span>{new Date(participantForm.watch("enscriptionDate")).toLocaleString()}</span>
|
||||
</p>
|
||||
</div>
|
||||
<div className="flex flex-col">
|
||||
<h3 className="text-xl">Verlauf</h3>
|
||||
{(
|
||||
participantForm.watch("statusLog") as unknown as ParticipantLog[]
|
||||
)?.map((s) => (
|
||||
{(participantForm.watch("statusLog") as unknown as ParticipantLog[])?.map((s) => (
|
||||
<div className="flex justify-between" key={(s as any).timestamp}>
|
||||
<p>{s.event}</p>
|
||||
<p>{s.user}</p>
|
||||
|
||||
@@ -161,13 +161,6 @@ export const ConnectionHistory: React.FC<{ user: User }> = ({ user }: { user: Us
|
||||
<div className="flex-1">
|
||||
<h2 className="card-title">
|
||||
<MixerHorizontalIcon className="w-5 h-5" /> Dispo-Verbindungs Historie
|
||||
<button
|
||||
onClick={() => {
|
||||
dispoTableRef.current?.refresh();
|
||||
}}
|
||||
>
|
||||
refresh
|
||||
</button>
|
||||
</h2>
|
||||
<PaginatedTable
|
||||
ref={dispoTableRef}
|
||||
|
||||
Reference in New Issue
Block a user