feat(examples): expose v0 todo field error targets

Add generated field-error targets to the v0 add and rename forms so the canonical todo example shows recoverable typed form feedback end to end instead of emitting errors with no visible target.

req: examples/001

req: canonical_authoring/003
This commit is contained in:
slhx agent
2026-06-22 22:17:21 +02:00
parent 430603ec00
commit 1aa92d8d9d
3 changed files with 10 additions and 1 deletions
+1
View File
@@ -2,6 +2,7 @@
<form data-hemx-handle="add_todo" data-hemx-form="new_todo">
<input name="title" required="required">
<button type="submit">Add</button>
<p data-hemx-error-for="title"></p>
</form>
<p data-hemx-slot="summary">{+ self.summary +}</p>
<p data-hemx-slot="notice">{+ self.notice +}</p>