- TabloDetailPage: full detail layout with title/desc/delete zones - TabloTitleDisplay/EditFragment: outerHTML-swappable title zone with _zone=title hidden field - TabloDescDisplay/EditFragment: outerHTML-swappable desc zone with _zone=desc hidden field - TabloDeleteButtonFragment: canonical single-source delete zone (TabloCard now delegates here) - TabloDeleteConfirmFragment: inline confirm with "Delete tablo?", "Yes, delete", "Keep tablo" - TabloNotFoundPage: 404 page with UI-SPEC copy - TabloUpdateErrors struct added to tablos_forms.go - just generate + go build ./... both exit 0
25 lines
748 B
Go
25 lines
748 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
|
|
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
|
|
}
|