tablas
This commit is contained in:
parent
eec9697a71
commit
65f7715b05
7 changed files with 242 additions and 3 deletions
|
|
@ -10,14 +10,13 @@ import (
|
|||
"git.smarteching.com/goffee/core"
|
||||
)
|
||||
|
||||
|
||||
// TablerDemo1 renders a Tabler-themed demo page
|
||||
func TablerDemo1(c *core.Context) *core.Response {
|
||||
|
||||
// first, include compoment
|
||||
type templateData struct {
|
||||
Content template.HTML
|
||||
}
|
||||
}
|
||||
// Build the template data
|
||||
data := templateData{
|
||||
// The main page content (rendered HTML)
|
||||
|
|
@ -70,6 +69,25 @@ func TablerNavbar(c *core.Context) *core.Response {
|
|||
return c.Response.Template("tabler_default.html", data)
|
||||
}
|
||||
|
||||
// TablerTables renders a page with table components
|
||||
func TablerTables(c *core.Context) *core.Response {
|
||||
data := TablerPageData{
|
||||
PageTitle: "Tables",
|
||||
PageDescription: "Table demo page",
|
||||
ShowTopbar: true,
|
||||
Sidebar: false,
|
||||
PageHeader: "Tables",
|
||||
PagePretitle: "Components",
|
||||
UserName: "Jane Doe",
|
||||
UserRole: "Administrator",
|
||||
NavbarMenu: SampleNavbarMenu(),
|
||||
TableHeaders: SampleTableHeaders(),
|
||||
TableRows: SampleTableRows(),
|
||||
Content: template.HTML(""),
|
||||
}
|
||||
return c.Response.Template("tabler_tables.html", data)
|
||||
}
|
||||
|
||||
// TablerHome renders the homepage/dashboard layout
|
||||
func TablerHome(c *core.Context) *core.Response {
|
||||
data := TablerPageData{
|
||||
|
|
@ -83,4 +101,4 @@ func TablerHome(c *core.Context) *core.Response {
|
|||
Sidebar: false,
|
||||
}
|
||||
return c.Response.Template("tabler_homepage.html", data)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue