23 lines
591 B
Plaintext

component Companies(groups [][]*arn.Company, user *arn.User)
h1 Companies
.corner-buttons
if user != nil
if user.DraftIndex().CompanyID == ""
button.action(data-action="newObject", data-trigger="click", data-type="company")
Icon("plus")
span Add company
else
a.button.ajax(href="/company/" + user.DraftIndex().CompanyID + "/edit")
Icon("pencil")
span Edit draft
.companies
each group in groups
.companies-group
h3= group[0].Name.English[:1]
ul
each company in group
li
a.ajax(href=company.Link())= company.Name.English