diff options
author | Steve Manuel <nilslice@gmail.com> | 2017-01-11 11:37:56 -0800 |
---|---|---|
committer | Steve Manuel <nilslice@gmail.com> | 2017-01-11 11:37:56 -0800 |
commit | ac82561825ab76f2b5db5c4086541e590fcb70cb (patch) | |
tree | a90bc1a4d8f26006916e48d346e4fd384859e1f4 /system/admin/config/config.go | |
parent | bc35db8c462646b8e0ed3bbc94ceca51808a7787 (diff) |
extending the "addon" platform within ponzu to register, present and manage addons
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> |