From 604a41c503e2574a32da70e6950d86e0777738ec Mon Sep 17 00:00:00 2001 From: Eduard Urbach Date: Sun, 19 Nov 2017 01:42:52 +0100 Subject: [PATCH] Added company name type to editform --- utils/editform/editform.go | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/utils/editform/editform.go b/utils/editform/editform.go index 754292e4..ef0ccd77 100644 --- a/utils/editform/editform.go +++ b/utils/editform/editform.go @@ -108,6 +108,17 @@ func RenderField(b *bytes.Buffer, v *reflect.Value, field reflect.StructField, i b.WriteString(`
`) b.WriteString(``) b.WriteString(`
`) + + case "arn.CompanyName": + b.WriteString(`
`) + b.WriteString(`
Name
`) + + for i := 0; i < field.Type.NumField(); i++ { + subField := field.Type.Field(i) + RenderField(b, &fieldValue, subField, field.Name+".") + } + + b.WriteString(`
`) default: panic("No edit form implementation for " + idPrefix + field.Name + " with type " + field.Type.String()) }