From 46a3715bae6e892f02cf585219e64f043a56c951 Mon Sep 17 00:00:00 2001 From: Eduard Urbach Date: Tue, 10 Oct 2017 12:14:52 +0200 Subject: [PATCH] Add media button --- pages/soundtrack/edit.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pages/soundtrack/edit.go b/pages/soundtrack/edit.go index 2277905d..50aa2b5d 100644 --- a/pages/soundtrack/edit.go +++ b/pages/soundtrack/edit.go @@ -8,6 +8,7 @@ import ( "strings" "github.com/animenotifier/notify.moe/components" + "github.com/animenotifier/notify.moe/utils" "github.com/aerogo/aero" "github.com/animenotifier/arn" @@ -88,6 +89,8 @@ func RenderField(b *bytes.Buffer, v *reflect.Value, field reflect.StructField, i arrayIDPrefix := fmt.Sprintf("%s[%d].", field.Name, sliceIndex) RenderObject(b, arrayObj, arrayIDPrefix) } + + b.WriteString(`
`) default: panic("No edit form implementation for " + idPrefix + field.Name + " with type " + field.Type.String()) }