xtablo-source/backend/templates/tasks_forms.go
Arthur Belleville 8b9543db6f
test(04-01): add RED test scaffold and task form structs
- handlers_tasks_test.go: 9 TestTask* functions (TASK-01..07 + IDOR) all skip
- TasksDeps stub struct declared in test file for Plan 02 wiring
- tasks_forms.go: TaskCreateForm, TaskCreateErrors, TaskUpdateForm, TaskUpdateErrors structs
- go build ./... passes; go test -run TestTask exits 0 with all 9 SKIP
2026-05-15 09:24:05 +02:00

30 lines
871 B
Go

package templates
// TaskCreateForm carries submitted field values back to the template for
// repopulation on validation failure.
type TaskCreateForm struct {
Title string
Status string // holds the column status value, e.g. "todo"
}
// TaskCreateErrors holds per-field and general error messages for the task
// create form. An empty string means "no error for this field".
type TaskCreateErrors struct {
Title string
General string
}
// TaskUpdateForm carries submitted field values back to the template for
// repopulation on validation failure.
type TaskUpdateForm struct {
Title string
Description string
}
// TaskUpdateErrors holds per-field and general error messages for the task
// update/edit form. An empty string means "no error for this field".
type TaskUpdateErrors struct {
Title string
Description string
General string
}