Implemented groups

This commit is contained in:
2017-10-17 23:17:04 +02:00
parent e9b6cb3ac8
commit 63a421e6a2
15 changed files with 248 additions and 158 deletions

21
pages/groups/groups.pixy Normal file
View File

@ -0,0 +1,21 @@
component Groups(groups []*arn.Group, user *arn.User)
.tabs
Tab("Groups", "users", "/groups")
h1.page-title Groups
.buttons
if user != nil
if user.DraftIndex().GroupID == ""
button.action(data-action="newObject", data-trigger="click", data-type="group")
Icon("plus")
span New group
else
a.button.ajax(href="/group/" + user.DraftIndex().GroupID + "/edit")
Icon("pencil")
span Edit draft
.groups
each group in groups
.group
h3= group.Name