1
0
mirror of https://github.com/astaxie/beego.git synced 2024-11-22 13:00:54 +00:00

Required field useful for not only input

This commit is contained in:
Joshua Santos 2016-06-28 16:39:09 -07:00
parent 8917fe44a9
commit 84b6bef7d0

View File

@ -450,7 +450,7 @@ func renderFormField(label, name, fType string, value interface{}, id string, cl
return fmt.Sprintf(`%v<input%v%v name="%v" type="%v" value="%v"%v>`, label, id, class, name, fType, value, requiredString)
}
return fmt.Sprintf(`%v<%v%v%v name="%v">%v</%v>`, label, fType, id, class, name, value, fType)
return fmt.Sprintf(`%v<%v%v%v name="%v"%v>%v</%v>`, label, fType, id, class, name, requiredString, value, fType)
}
// isValidForInput checks if fType is a valid value for the `type` property of an HTML input element.