summaryrefslogtreecommitdiffstats
path: root/authentication/templates/login.html
diff options
context:
space:
mode:
Diffstat (limited to 'authentication/templates/login.html')
-rw-r--r--authentication/templates/login.html21
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 %}