- 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>
26 lines
764 B
Go
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
|
|
}
|