This commit is contained in:
Roch D'Amour 2022-02-16 00:48:39 -05:00
parent 3441d9f3d3
commit 19e54bd266
2 changed files with 45 additions and 55 deletions

View File

@ -1,65 +1,55 @@
<!DOCTYPE html>
<html lang="en">
{{ template "head.tpl.html" . }}
<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"
>
{{ template "header.tpl.html" . }} {{ template "alerts.tpl.html" . }}
{{ template "head.tpl.html" . }}
<main class="mt-10 flex-grow flex justify-center w-full">
<div class="flex-grow max-w-lg mt-10">
<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">
{{ template "header.tpl.html" . }}
{{ template "alerts.tpl.html" . }}
<main class="mt-10 flex-grow flex justify-center w-full">
<div class="flex-grow max-w-lg mt-10">
<div class="mb-8">
<h1 class="h1">Welcome!</h1>
<span class="h1-subcaption">Log in to continue using Wakapi</span>
<h1 class="h1">Welcome!</h1>
<span class="h1-subcaption">Log in to continue using Wakapi</span>
</div>
<form action="login" method="post">
<div class="mb-4">
<input
class="input-default"
type="text"
id="username"
autocomplete="username"
name="username"
placeholder="Username"
minlength="1"
required
autofocus
/>
</div>
<div class="mb-4">
<input
class="input-default"
type="password"
id="password"
autocomplete="current-password"
name="password"
placeholder="Password"
minlength="6"
required
/>
</div>
<div class="flex justify-between items-center">
<a href="reset-password" class="text-gray-600 text-sm">
Forgot password?
</a>
<div class="flex space-x-2">
{{ if eq .AllowSignup true }}
<a href="signup">
<button type="button" class="btn-default">Sign up</button>
</a>
{{ else }}
<a title="The administrator of this instance has disabled sign up.">
<button type="button" class="btn-disabled" disabled > Sign up </button>
</a>
{{ end }}
<button type="submit" class="btn-primary">Log in</button>
<div class="mb-4">
<input class="input-default"
type="text" id="username" autocomplete="username"
name="username" placeholder="Username" minlength="1" required autofocus>
</div>
<div class="mb-4">
<input class="input-default"
type="password" id="password" autocomplete="current-password"
name="password" placeholder="Password" minlength="6" required>
</div>
<div class="flex justify-between items-center">
<a href="reset-password" class="text-gray-600 text-sm">
Forgot password?
</a>
<div class="flex space-x-2">
{{ if eq .AllowSignup true }}
<a href="signup">
<button type="button" class="btn-default">Sign up</button>
</a>
{{ else }}
<a title="The administrator of this instance has disabled sign up.">
<button type="button" class="btn-disabled" disabled > Sign up </button>
</a>
{{ end }}
<button type="submit" class="btn-primary">Log in</button>
</div>
</div>
</div>
</form>
</div>
</main>
</div>
</main>
{{ template "footer.tpl.html" . }}
{{ template "foot.tpl.html" . }}
</body>
{{ template "footer.tpl.html" . }} {{ template "foot.tpl.html" . }}
</body>
</html>

View File

@ -91,7 +91,7 @@
<button type="submit" class="btn-disabled" disabled title="The administrator of this instance has disabled sign up.">
Create Account
</button>
{{ end }}
{{ end }}
</div>
</form>
</div>