diff options
author | Steve <nilslice@gmail.com> | 2017-01-12 16:19:00 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-01-12 16:19:00 -0800 |
commit | 21b9f301c5e1305c3be4e260161d2495bca059de (patch) | |
tree | 3be88e282bb9801b5b0354f89c5fe127996b0b6a /system/admin/config/config.go | |
parent | ad96d5fa100615ada7ae8f06e75088f9297122fd (diff) |
[addons] Expanding basic addon framework (#29)
Diffstat (limited to 'system/admin/config/config.go')
-rw-r--r-- | system/admin/config/config.go | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/system/admin/config/config.go b/system/admin/config/config.go index 2bc80c6..7b57dc0 100644 --- a/system/admin/config/config.go +++ b/system/admin/config/config.go @@ -8,7 +8,6 @@ import ( // Config represents the confirgurable options of the system type Config struct { item.Item - editor editor.Editor Name string `json:"name"` Domain string `json:"domain"` @@ -23,9 +22,6 @@ type Config struct { // String partially implements item.Identifiable and overrides Item's String() func (c *Config) String() string { return c.Name } -// Editor partially implements editor.Editable -func (c *Config) Editor() *editor.Editor { return &c.editor } - // MarshalEditor writes a buffer of html to edit a Post and partially implements editor.Editable func (c *Config) MarshalEditor() ([]byte, error) { view, err := editor.Form(c, @@ -90,7 +86,13 @@ func (c *Config) MarshalEditor() ([]byte, error) { return nil, err } - open := []byte(`<div class="card"><form action="/admin/configure" method="post">`) + open := []byte(` + <div class="card"> + <div class="card-content"> + <div class="card-title">System Configuration</div> + </div> + <form action="/admin/configure" method="post"> + `) close := []byte(`</form></div>`) script := []byte(` <script> |