diff options
| author | 2026-07-30 16:03:32 +0200 | |
|---|---|---|
| committer | 2026-07-30 16:03:32 +0200 | |
| commit | 2d22158dd95f76399f5716d556be60c77da04a46 (patch) | |
| tree | 15fca3adae0f44674fe06bc141879804659c3664 /authentication/templates/login.html | |
| parent | aa56bc05285981d57c5adb2cee3c4e898fb2a702 (diff) | |
| download | server-2d22158dd95f76399f5716d556be60c77da04a46.tar.gz server-2d22158dd95f76399f5716d556be60c77da04a46.tar.bz2 server-2d22158dd95f76399f5716d556be60c77da04a46.zip | |
Admin uiv3
Diffstat (limited to 'authentication/templates/login.html')
| -rw-r--r-- | authentication/templates/login.html | 21 |
1 files changed, 8 insertions, 13 deletions
diff --git a/authentication/templates/login.html b/authentication/templates/login.html index 2db2512..dcc0efd 100644 --- a/authentication/templates/login.html +++ b/authentication/templates/login.html | |||
| @@ -1,18 +1,13 @@ | |||
| 1 | {% extends "./base.html" %} | 1 | {% extends "./base.html" %} |
| 2 | {% import 'macros.html' as ui %} | ||
| 2 | 3 | ||
| 3 | {% block content %} | 4 | {% block content %} |
| 5 | <h1>Sign in</h1> | ||
| 6 | <p class="auth-form__intro">Enter your credentials to manage this server.</p> | ||
| 4 | <form method="post"> | 7 | <form method="post"> |
| 5 | 8 | {{ ui.field('username', label='Username', value=form.username if form else '', error=errors.username if errors else '') }} | |
| 6 | <input type="text" name="username" {% if form %}value="{{ form.username }}"{% endif %} placeholder="username" /> | 9 | {{ ui.field('password', type='password', label='Password', error=errors.password if errors else '') }} |
| 7 | {% if errors and errors.username %} | 10 | {{ ui.button('Sign in') }} |
| 8 | {{ errors.username }} | ||
| 9 | {% endif %} | ||
| 10 | |||
| 11 | |||
| 12 | <input type="password" name="password" /> | ||
| 13 | {% if errors and errors.password%} | ||
| 14 | {{ errors.password }} | ||
| 15 | {% endif %} | ||
| 16 | <button type="submit">Login</button> | ||
| 17 | </form> | 11 | </form> |
| 18 | {% endblock %} | 12 | <p class="auth-switch">New here? <a href="/auth/register/">Create an account</a></p> |
| 13 | {% endblock %} | ||
