2020-11-28 22:31:28 +03:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="en">
|
|
|
|
|
|
|
|
{{ template "head.tpl.html" . }}
|
|
|
|
|
2021-12-16 00:46:02 +03:00
|
|
|
<body class="bg-gray-900 text-gray-700 p-4 pt-10 flex flex-col min-h-screen max-w-screen-lg mx-auto justify-center">
|
2020-11-28 22:31:28 +03:00
|
|
|
|
|
|
|
{{ template "header.tpl.html" . }}
|
|
|
|
|
|
|
|
{{ template "alerts.tpl.html" . }}
|
|
|
|
|
2022-10-09 02:53:52 +03:00
|
|
|
<main class="mt-10 grow flex justify-center w-full">
|
|
|
|
<div class="grow max-w-lg mt-10">
|
2021-12-16 00:46:02 +03:00
|
|
|
<div class="mb-8">
|
2021-12-19 15:04:00 +03:00
|
|
|
<h1 class="h1">Welcome!</h1>
|
|
|
|
<span class="h1-subcaption">Log in to continue using Wakapi</span>
|
2021-12-16 00:46:02 +03:00
|
|
|
</div>
|
2020-11-28 22:31:28 +03:00
|
|
|
<form action="login" method="post">
|
2021-12-16 00:46:02 +03:00
|
|
|
<div class="mb-4">
|
2021-12-19 15:04:00 +03:00
|
|
|
<input class="input-default"
|
2021-08-29 04:10:54 +03:00
|
|
|
type="text" id="username" autocomplete="username"
|
2021-12-16 00:46:02 +03:00
|
|
|
name="username" placeholder="Username" minlength="1" required autofocus>
|
2020-11-28 22:31:28 +03:00
|
|
|
</div>
|
2021-12-16 00:46:02 +03:00
|
|
|
<div class="mb-4">
|
2021-12-19 15:04:00 +03:00
|
|
|
<input class="input-default"
|
2021-08-29 04:10:54 +03:00
|
|
|
type="password" id="password" autocomplete="current-password"
|
2021-12-16 00:46:02 +03:00
|
|
|
name="password" placeholder="Password" minlength="6" required>
|
2020-11-28 22:31:28 +03:00
|
|
|
</div>
|
2021-04-05 23:57:57 +03:00
|
|
|
<div class="flex justify-between items-center">
|
2021-12-16 00:46:02 +03:00
|
|
|
<a href="reset-password" class="text-gray-600 text-sm">
|
2021-04-05 23:57:57 +03:00
|
|
|
Forgot password?
|
2020-11-28 22:31:28 +03:00
|
|
|
</a>
|
2021-04-05 23:57:57 +03:00
|
|
|
<div class="flex space-x-2">
|
2022-02-17 11:53:37 +03:00
|
|
|
{{ if .AllowSignup }}
|
2021-04-05 23:57:57 +03:00
|
|
|
<a href="signup">
|
2021-12-19 15:04:00 +03:00
|
|
|
<button type="button" class="btn-default">Sign up</button>
|
2021-04-05 23:57:57 +03:00
|
|
|
</a>
|
2022-02-16 10:56:27 +03:00
|
|
|
{{ else }}
|
2022-02-17 11:53:37 +03:00
|
|
|
<a title="The administrator of this instance has disabled sign up.">
|
|
|
|
<button type="button" class="btn-disabled" disabled> Sign up </button>
|
2022-02-16 10:56:27 +03:00
|
|
|
</a>
|
|
|
|
{{ end }}
|
2021-12-19 15:04:00 +03:00
|
|
|
<button type="submit" class="btn-primary">Log in</button>
|
2021-04-05 23:57:57 +03:00
|
|
|
</div>
|
2020-11-28 22:31:28 +03:00
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</main>
|
|
|
|
|
|
|
|
{{ template "footer.tpl.html" . }}
|
|
|
|
|
|
|
|
{{ template "foot.tpl.html" . }}
|
|
|
|
</body>
|
|
|
|
|
2022-02-16 10:56:27 +03:00
|
|
|
</html>
|