d821d392/html_components/edit-item-modal.go
1970-01-01 00:00:00 +00:00

34 lines
754 B
Go

package html_components
type InputType string
const (
InputTypeText InputType = "text"
InputTypeTextarea InputType = "textarea"
InputTypeBool InputType = "bool"
InputTypeInt InputType = "int"
InputTypeFloat InputType = "float"
InputTypeEnum InputType = "enum"
InputTypeDateTime InputType = "dateTime"
InputTypeImage InputType = "image"
)
type EditItemModalInputs struct {
Label string
Value string
Name string
Type InputType
Options []SelectInputOption
HideLabel bool
}
type EditItemModal struct {
Id string
Title string
Url string
IsCreate bool
Inputs []EditItemModalInputs
SubmitButtonLabel string
HaseFileUpload bool
}