mirror of
https://onedev.site.tesses.net/crosslang/crosslangextras
synced 2026-02-08 17:15:45 +00:00
33 lines
1.5 KiB
Plaintext
33 lines
1.5 KiB
Plaintext
func Pages.Login(ctx)
|
|
{
|
|
var pages = [
|
|
{
|
|
active = false,
|
|
route = "/packages",
|
|
text = "Packages"
|
|
},
|
|
{
|
|
active = false,
|
|
route = "/upload",
|
|
text = "Upload"
|
|
},
|
|
DB.LoginButton(ctx,true)
|
|
];
|
|
var html = <div class={"container min-vh-100 d-flex justify-content-center align-items-center"}>
|
|
<form action={"./login"} method={"post"} enctype={"application/x-www-form-urlencoded"}>
|
|
<div class={"mb-3"}>
|
|
<label for={"email"} class={"form-label"}>Email address</label>
|
|
<input type={"email"} class={"form-control"} id={"email"} name={"email"} aria-describedby={"emailHelp"}>
|
|
<div id={"emailHelp"} class={"form-text"}>{"We'll"} never share your email with anyone else.</div>
|
|
</div>
|
|
<div class={"mb-3"}>
|
|
<label for={"password"} class={"form-label"}>Password</label>
|
|
<input type={"password"} class={"form-control"} name={"password"} id={"password"}>
|
|
</div>
|
|
<a href={"./signup"}>Sign up</a>
|
|
<a href={"./forgot_password"}>Forgot Password</a>
|
|
<button type={"submit"} class={"btn btn-primary"}>Login</button>
|
|
</form>
|
|
</div>;
|
|
return Shell("Login",pages,html);
|
|
} |