cards
This commit is contained in:
parent
f03b933359
commit
aa651083cd
7 changed files with 330 additions and 1 deletions
|
|
@ -69,6 +69,31 @@ func TablerNavbar(c *core.Context) *core.Response {
|
|||
return c.Response.Template("tabler_default.html", data)
|
||||
}
|
||||
|
||||
// TablerCards renders a page with card component demos.
|
||||
// Uses the composition pattern: embeds TablerPageData and adds Cards.
|
||||
func TablerCards(c *core.Context) *core.Response {
|
||||
type cardsPageData struct {
|
||||
TablerPageData
|
||||
Cards []FormtablerCard
|
||||
}
|
||||
data := cardsPageData{
|
||||
TablerPageData: TablerPageData{
|
||||
PageTitle: "Cards",
|
||||
PageDescription: "Card component demo page",
|
||||
ShowTopbar: true,
|
||||
Sidebar: false,
|
||||
PageHeader: "Cards",
|
||||
PagePretitle: "Components",
|
||||
UserName: "Jane Doe",
|
||||
UserRole: "Administrator",
|
||||
NavbarMenu: SampleNavbarMenu(),
|
||||
Content: template.HTML(""),
|
||||
},
|
||||
Cards: SampleCards(),
|
||||
}
|
||||
return c.Response.Template("tabler_cards.html", data)
|
||||
}
|
||||
|
||||
// TablerFormElements renders a page with all 25 formtabler form components.
|
||||
// Uses the composition pattern: embeds TablerPageData and adds
|
||||
// a FormElements field containing all form component data.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue