diff options
author | Steve Manuel <nilslice@gmail.com> | 2016-10-25 11:35:10 -0700 |
---|---|---|
committer | Steve Manuel <nilslice@gmail.com> | 2016-10-25 11:35:10 -0700 |
commit | 09b06ed0e0188b8559620e4e0c4f7e54599044af (patch) | |
tree | d6a7e9bbce679b27576c50cce73aef5e1cbde707 /content | |
parent | 17ed6c7c2f06aa8f946e89d14381aa6fb40bc474 (diff) |
adding Tags input type and implementing a test on post
Diffstat (limited to 'content')
-rw-r--r-- | content/post.go | 8 |
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{ |