1
1

add fancy page

This commit is contained in:
2021-01-10 22:15:20 +01:00
parent 8d94d62c85
commit 1a5efd31ae
7 changed files with 251 additions and 35 deletions

View File

@@ -6,19 +6,17 @@
{% block content %}
<form id="login-form" method="post" action="{% url 'login' %}">
<form method="post" action="{% url 'login' %}">
{% csrf_token %}
<label for="id_username">username</label>
<input id="id_username" name="username" type="text" placeholder="username">
<label for="id_password">password</label>
<input id="id_password" name="password" type="password" placeholder="password">
{% if form.errors %}
<div id="login-warning">
nope.
</div>
{% endif %}
<input id="login-button" type="submit" value="login"/>
<label for="username"></label>
<input id="username" name="username" type="text" placeholder="username">
<label for="password">password</label>
<input id="password" name="password" type="password" placeholder="password">
<input type="submit" value="login"/>
<input type="hidden" name="next" value="{{ next }}"/>
{% if form.errors %}
<p>nope.</p>
{% endif %}
</form>
{% endblock %}