summaryrefslogtreecommitdiff
path: root/system/admin
diff options
context:
space:
mode:
Diffstat (limited to 'system/admin')
-rw-r--r--system/admin/admin.go14
-rw-r--r--system/admin/auth.go11
-rw-r--r--system/admin/config.go5
3 files changed, 30 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)
diff --git a/system/admin/auth.go b/system/admin/auth.go
new file mode 100644
index 0000000..153a31a
--- /dev/null
+++ b/system/admin/auth.go
@@ -0,0 +1,11 @@
+package admin
+
+// Session ...
+type Session struct {
+ User
+ token string
+}
+
+// User ...
+type User struct {
+}
diff --git a/system/admin/config.go b/system/admin/config.go
new file mode 100644
index 0000000..e067299
--- /dev/null
+++ b/system/admin/config.go
@@ -0,0 +1,5 @@
+package admin
+
+// Config represents the confirgurable options of the system
+type Config struct {
+}