feat: added comments
Commit / ci (push) Successful in 1m37s
Release / publish (push) Failing after 5m57s

This commit is contained in:
2025-12-10 19:16:18 +01:00
parent 5b8a436b91
commit 2702615b34
10 changed files with 666 additions and 1 deletions
@@ -0,0 +1,27 @@
<script lang="ts">
import { Button, Label, Textarea } from 'flowbite-svelte';
import RatingInput from './RatingInput.svelte';
interface Rating {
rating: number;
comment: string;
}
let { rating }: { rating: Rating } = $props();
</script>
<form method="POST" class="flex flex-col gap-5">
<div>
<Label>Komentar</Label>
<Textarea
value={rating.comment}
name="comment"
required
minlength={5}
class="w-full min-h-40"
/>
</div>
<div>
<Label>Bewärtig</Label>
<RatingInput value={rating.rating} name="rating" />
</div>
<Button type="submit" class="grow-0 self-end">Spichere</Button>
</form>