diff options
Diffstat (limited to 'system/admin/admin.go')
-rw-r--r-- | system/admin/admin.go | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/system/admin/admin.go b/system/admin/admin.go index bbc34cf..8febbf7 100644 --- a/system/admin/admin.go +++ b/system/admin/admin.go @@ -4,6 +4,7 @@ package admin import ( "bytes" + "fmt" "html/template" "github.com/nilslice/cms/content" @@ -13,6 +14,17 @@ const adminHTML = `<!doctype html> <html> <head> <title>CMS</title> + <style type="text/css"> + label { + display: block; + margin-top: 11px; + } + input { + display: block; + margin-bottom: 11px; + padding: 2px; + } + </style> </head> <body> <h1><a href="/admin">CMS</a></h1> @@ -43,6 +55,8 @@ func Admin(manager []byte) []byte { Subview: template.HTML(manager), } + fmt.Println(a.Types) + buf := &bytes.Buffer{} tmpl := template.Must(template.New("admin").Parse(adminHTML)) tmpl.Execute(buf, a) |