fix(ui): move save bar to end of edit page after alias and danger zone
Uses HTML form attribute to associate the submit button with the person-edit-form from outside the form tag. Page now reads: Personendaten -> Namensverlauf -> Danger zone -> Save bar. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -42,15 +42,13 @@ const person = $derived(data.person);
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
<form method="POST" use:enhance>
|
||||
<form id="person-edit-form" method="POST" use:enhance>
|
||||
<div class="rounded-sm border border-line bg-surface p-6 shadow-sm">
|
||||
<h2 class="mb-5 text-xs font-bold tracking-widest text-ink-3 uppercase">
|
||||
{m.persons_section_details()}
|
||||
</h2>
|
||||
<PersonEditForm person={person} />
|
||||
</div>
|
||||
|
||||
<PersonEditSaveBar discardHref="/persons/{person.id}" />
|
||||
</form>
|
||||
|
||||
<NameHistoryEditCard
|
||||
@@ -61,4 +59,6 @@ const person = $derived(data.person);
|
||||
/>
|
||||
|
||||
<PersonDangerZone person={person} form={form} />
|
||||
|
||||
<PersonEditSaveBar discardHref="/persons/{person.id}" formId="person-edit-form" />
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user