templates base

This commit is contained in:
JACS 2026-05-03 00:49:28 -05:00
parent 1f95f86829
commit 137b9f9a6a
8 changed files with 253 additions and 3 deletions

View file

@ -171,6 +171,60 @@ func TablerTables(c *core.Context) *core.Response {
return c.Response.Template("tabler_tables.html", data)
}
// UserSignIn renders the sign-in page.
func UserSignIn(c *core.Context) *core.Response {
type authPageData struct {
TablerPageData
}
data := authPageData{
TablerPageData: TablerPageData{
PageTitle: "Sign In",
},
}
return c.Response.Template("apptabler_sign-in.html", data)
}
// UserSignUp renders the sign-up page.
func UserSignUp(c *core.Context) *core.Response {
type authPageData struct {
TablerPageData
}
data := authPageData{
TablerPageData: TablerPageData{
PageTitle: "Sign Up",
},
}
return c.Response.Template("apptabler_sign-up.html", data)
}
// UserForgot renders the forgot password page.
func UserForgot(c *core.Context) *core.Response {
type authPageData struct {
TablerPageData
}
data := authPageData{
TablerPageData: TablerPageData{
PageTitle: "Forgot Password",
},
}
return c.Response.Template("apptabler_forgot.html", data)
}
// UserLock renders the account lock page.
func UserLock(c *core.Context) *core.Response {
type authLockPageData struct {
TablerPageData
PersonName string
}
data := authLockPageData{
TablerPageData: TablerPageData{
PageTitle: "Account Locked",
},
PersonName: "Paweł Kuna",
}
return c.Response.Template("apptabler_auth-lock.html", data)
}
// TablerHome renders the homepage/dashboard layout
func TablerHome(c *core.Context) *core.Response {
data := TablerPageData{