feat: add update and delete functionality for courses, events, and species; enhance attendance tracking and category creation
Some checks failed
Workflow / ʦ TypeScript (push) Failing after 4m53s
Workflow / ⚫️ Test (push) Has been skipped

This commit is contained in:
T. Zehetbauer
2026-04-01 16:03:50 +02:00
parent 7b078f298b
commit c6b2824da8
48 changed files with 2036 additions and 390 deletions

View File

@@ -4,8 +4,8 @@ import {
CalendarDays,
MapPin,
Users,
Euro,
Clock,
Pencil,
UserPlus,
} from 'lucide-react';
@@ -17,7 +17,8 @@ import { Button } from '@kit/ui/button';
import { Card, CardContent, CardHeader, CardTitle } from '@kit/ui/card';
import { CmsPageShell } from '~/components/cms-page-shell';
import { EmptyState } from '~/components/empty-state';
import { DeleteEventButton } from './delete-event-button';
interface PageProps {
params: Promise<{ account: string; eventId: string }>;
@@ -61,6 +62,17 @@ export default async function EventDetailPage({ params }: PageProps) {
return (
<CmsPageShell account={account} title={String(eventData.name)}>
<div className="flex w-full flex-col gap-6">
{/* Action Buttons */}
<div className="flex justify-end gap-2">
<Button asChild variant="outline" size="sm">
<Link href={`/home/${account}/events/${eventId}/edit`}>
<Pencil className="mr-2 h-4 w-4" />
Bearbeiten
</Link>
</Button>
<DeleteEventButton eventId={eventId} accountSlug={account} />
</div>
{/* Header */}
<div className="flex items-center justify-between">
<div>