Added company editing UI

This commit is contained in:
Eduard Urbach 2017-11-19 01:15:57 +01:00
parent 71b8cbf61d
commit 7724c2958f
4 changed files with 10 additions and 1 deletions

View File

@ -16,6 +16,10 @@ component Sidebar(user *arn.User)
SidebarButton("Forum", "/forum", "comment")
SidebarButton("Explore", "/explore", "th")
SidebarButton("Soundtracks", "/soundtracks", "headphones")
if user != nil && user.Role == "admin"
SidebarButton("Companies", "/companies", "building")
SidebarButton("Users", "/users", "globe")
if user != nil

View File

@ -1,5 +1,5 @@
component Companies(companies []*arn.Company, user *arn.User)
h1.page-title Companies
h1 Companies
.corner-buttons
if user != nil

View File

@ -1,6 +1,10 @@
component CompanyPage(company *arn.Company, user *arn.User)
CompanyTabs(company, user)
h1= company.Name.English
.company-description!= markdown.Render(company.Description)
component CompanyTabs(company *arn.Company, user *arn.User)
.tabs
Tab("Company", "building", company.Link())

View File

@ -96,6 +96,7 @@ func Configure(app *aero.Application) {
// Companies
l.Page("/company/:id", company.Get)
l.Page("/company/:id/edit", company.Edit)
l.Page("/companies", companies.Get)
// Settings