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
1 changed files with 1 additions and 1 deletions

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.