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
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Float
|
||||||
|
if fieldType == "float64" {
|
||||||
|
b.WriteString(components.InputNumber(idPrefix+field.Name, fieldValue.Float(), field.Name, field.Tag.Get("tooltip"), "", "", ""))
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
// Bool
|
// Bool
|
||||||
if fieldType == "bool" {
|
if fieldType == "bool" {
|
||||||
if field.Name == "IsDraft" {
|
if field.Name == "IsDraft" {
|
||||||
|
Loading…
Reference in New Issue
Block a user