forgejo-tickets/web/templates/pages/forgot-password.html

33 lines
1.3 KiB
HTML

{{define "title"}}Forgot Password{{end}}
{{define "content"}}
<div class="mx-auto max-w-sm">
<h2 class="text-2xl font-bold text-gray-900 text-center">Reset your password</h2>
<p class="mt-2 text-center text-sm text-gray-600">Enter your email and we'll send you a reset link.</p>
{{with .Data}}
{{if .Success}}
<div class="mt-4 rounded-md bg-green-50 p-4">
<p class="text-sm text-green-800">{{.Success}}</p>
</div>
{{end}}
{{end}}
<form method="POST" action="/forgot-password" class="mt-8 space-y-6">
<input type="hidden" name="gorilla.csrf.Token" value="{{.CSRFToken}}">
<div>
<label for="email" class="block text-sm font-medium text-gray-700">Email</label>
<input type="email" name="email" id="email" required
class="mt-1 block w-full rounded-md border border-gray-300 px-3 py-2 shadow-sm focus:border-blue-500 focus:outline-none focus:ring-1 focus:ring-blue-500">
</div>
<button type="submit" class="w-full rounded-md bg-blue-600 px-4 py-2 text-sm font-semibold text-white shadow hover:bg-blue-500">Send reset link</button>
</form>
<p class="mt-6 text-center text-sm text-gray-500">
<a href="/login" class="font-medium text-blue-600 hover:text-blue-500">Back to login</a>
</p>
</div>
{{end}}