alerts, toast amd breadcrum

This commit is contained in:
JACS 2026-05-03 00:06:23 -05:00
parent aa651083cd
commit 1f95f86829
12 changed files with 525 additions and 1 deletions

View file

@ -69,6 +69,31 @@ func TablerNavbar(c *core.Context) *core.Response {
return c.Response.Template("tabler_default.html", data)
}
// TablerComponents renders a page with alerts, breadcrumbs, and toasts.
// Uses the composition pattern: embeds TablerPageData and adds Components.
func TablerComponents(c *core.Context) *core.Response {
type componentsPageData struct {
TablerPageData
Components FormtablerComponentsPage
}
data := componentsPageData{
TablerPageData: TablerPageData{
PageTitle: "UI Components",
PageDescription: "Alerts, breadcrumbs and toasts demo",
ShowTopbar: true,
Sidebar: false,
PageHeader: "Components",
PagePretitle: "UI Elements",
UserName: "Jane Doe",
UserRole: "Administrator",
NavbarMenu: SampleNavbarMenu(),
Content: template.HTML(""),
},
Components: SampleComponents(),
}
return c.Response.Template("tabler_components.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 {