summaryrefslogtreecommitdiff
path: root/system/admin/admin.go
diff options
context:
space:
mode:
authorSteve Manuel <nilslice@gmail.com>2016-09-22 17:47:14 -0700
committerSteve Manuel <nilslice@gmail.com>2016-09-22 17:47:14 -0700
commit27c175f6c626175598ee0a3d5c7b750a84d583e2 (patch)
tree563cd0451d81464afb1269d7f703ddb8e4d9d9f0 /system/admin/admin.go
parentf31c13d76e5de8ab0420ecaf0f570e52f6218066 (diff)
adding a generator for custom post content types, slug for url based on title, main file to manage commands
Diffstat (limited to 'system/admin/admin.go')
-rw-r--r--system/admin/admin.go14
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)