Added company editing UI
This commit is contained in:
parent
71b8cbf61d
commit
7724c2958f
@ -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
|
||||
|
@ -1,5 +1,5 @@
|
||||
component Companies(companies []*arn.Company, user *arn.User)
|
||||
h1.page-title Companies
|
||||
h1 Companies
|
||||
|
||||
.corner-buttons
|
||||
if user != nil
|
||||
|
@ -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())
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user