fix(forms): correct required/optional field markers and divider placement
Some checks failed
CI / Backend Unit Tests (push) Has been cancelled
CI / Unit & Component Tests (push) Has been cancelled
CI / OCR Service Tests (push) Has been cancelled

- Add * to Datum and Absender labels (both are required fields)
- Add required prop to PersonTypeahead to show * in its label
- Move "Optional" divider in DescriptionSection to after Titel (the only
  required field), so Tags and Inhalt appear below the divider where they belong

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit was merged in pull request #267.
This commit is contained in:
Marcel
2026-04-18 20:12:41 +02:00
committed by marcel
parent 208c1adc3e
commit fced33e033
3 changed files with 16 additions and 13 deletions

View File

@@ -59,7 +59,7 @@ $effect(() => {
<!-- Datum (required — row 1, col 1) -->
<div>
<label for="documentDate" class="mb-1 block text-sm font-medium text-ink-2"
>{m.form_label_date()}</label
>{m.form_label_date()}*</label
>
<input
id="documentDate"
@@ -85,6 +85,7 @@ $effect(() => {
<PersonTypeahead
name="senderId"
label={m.form_label_sender()}
required={true}
bind:value={senderId}
initialName={initialSenderName}
suggestedName={suggestedSenderName}