xtablo-source/backend/templates/tablos_forms.go
Arthur Belleville 79435602c4
fix(03): WR-04 add color field error display to create form template
- TabloCreateErrors: add Color field for server-side hex validation error
- TabloCreateFormFragment: render FieldError for color field and update
  placeholder to hex-only hint (#6366f1) matching the validation constraint

Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
2026-05-15 08:30:27 +02:00

26 lines
764 B
Go

package templates
// TabloCreateForm carries the submitted field values back to the template so
// inputs can be repopulated on validation failure.
type TabloCreateForm struct {
Title string
Description string
Color string
}
// TabloCreateErrors holds per-field and general error messages for the tablo
// create form. A field with an empty string means "no error for this field".
type TabloCreateErrors struct {
Title string
Color string
General string
}
// TabloUpdateErrors holds per-field and general error messages for the tablo
// inline-edit forms (title and description). A field with an empty string
// means "no error for this field".
type TabloUpdateErrors struct {
Title string
Description string
General string
}