Skip to main content

max / makenotwork

1.3 KB · 44 lines History Blame Raw
1 {% extends "base.html" %}
2
3 {% block title %}Reset Password - Makenotwork{% endblock %}
4
5 {% block body_attrs %} class="centered-page"{% endblock %}
6
7 {% block content %}
8 <h1 class="brand-h1">Makenot<span class="dot">.</span>work</h1>
9 <div class="login-container">
10 <div id="form-feedback"></div>
11
12 <form class="login-form"
13 hx-post="/forgot-password"
14 hx-target="#form-feedback"
15 hx-swap="innerHTML"
16 hx-indicator="#submit-spinner">
17 <h2 class="subtitle-h2">Reset Password</h2>
18 <p class="form-description">Enter your email address and we'll send you a link to reset your password.</p>
19 {% if let Some(token) = csrf_token %}<input type="hidden" name="_csrf" value="{{ token }}">{% endif %}
20
21 <div class="form-group">
22 <label for="email">Email</label>
23 <input
24 type="email"
25 id="email"
26 name="email"
27 placeholder="you@example.com"
28 required
29 autofocus
30 />
31 </div>
32
33 <button type="submit" class="btn-primary">
34 Send Reset Link
35 <span id="submit-spinner" class="htmx-indicator"> ...</span>
36 </button>
37
38 <div class="foot-link">
39 <a href="/login">Back to login<span class="dot">.</span></a>
40 </div>
41 </form>
42 </div>
43 {% endblock %}
44