summaryrefslogtreecommitdiff
path: root/content
diff options
context:
space:
mode:
authorSteve Manuel <nilslice@gmail.com>2016-10-25 11:35:10 -0700
committerSteve Manuel <nilslice@gmail.com>2016-10-25 11:35:10 -0700
commit09b06ed0e0188b8559620e4e0c4f7e54599044af (patch)
treed6a7e9bbce679b27576c50cce73aef5e1cbde707 /content
parent17ed6c7c2f06aa8f946e89d14381aa6fb40bc474 (diff)
adding Tags input type and implementing a test on post
Diffstat (limited to 'content')
-rw-r--r--content/post.go8
1 files changed, 2 insertions, 6 deletions
diff --git a/content/post.go b/content/post.go
index 7dc99c1..08b831d 100644
--- a/content/post.go
+++ b/content/post.go
@@ -68,12 +68,8 @@ func (p *Post) MarshalEditor() ([]byte, error) {
}),
},
editor.Field{
- View: editor.Checkbox("Category", p, map[string]string{
- "label": "Post Category",
- }, map[string]string{
- "important": "Important",
- "active": "Active",
- "unplanned": "Unplanned",
+ View: editor.Tags("Category", p, map[string]string{
+ "label": "Post Categories",
}),
},
editor.Field{