17 lines
462 B
Plaintext
Raw Normal View History

2017-11-18 10:46:17 +00:00
component Companies(companies []*arn.Company, user *arn.User)
2017-11-19 00:15:57 +00:00
h1 Companies
2017-11-18 10:46:17 +00:00
2017-11-18 23:42:22 +00:00
.corner-buttons
2017-11-18 10:46:17 +00:00
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
ul
each company in companies
li= company.Name.English