Added float type to EditForm
This commit is contained in:
parent
1caa4b6de5
commit
1c81f938b7
@ -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" {
|
||||
|
Loading…
Reference in New Issue
Block a user