Added float type to EditForm

This commit is contained in:
Eduard Urbach 2017-11-27 18:34:34 +01:00
parent 1caa4b6de5
commit 1c81f938b7

View File

@ -102,6 +102,12 @@ func RenderField(b *bytes.Buffer, v *reflect.Value, field reflect.StructField, i
return
}
// Float
if fieldType == "float64" {
b.WriteString(components.InputNumber(idPrefix+field.Name, fieldValue.Float(), field.Name, field.Tag.Get("tooltip"), "", "", ""))
return
}
// Bool
if fieldType == "bool" {
if field.Name == "IsDraft" {