31 lines
871 B
Go
31 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
|
||
|
|
}
|