euscanwww: included django-registration and tweaked templates
Signed-off-by: volpino <fox91@anche.no>
This commit is contained in:
28
euscanwww/djeuscan/templates/registration/login.html
Normal file
28
euscanwww/djeuscan/templates/registration/login.html
Normal file
@ -0,0 +1,28 @@
|
||||
{% extends "registration/_registration_base.html" %}
|
||||
{% load url from future %}
|
||||
{% load i18n %}
|
||||
|
||||
{% block content %}
|
||||
|
||||
{% if form.errors %}
|
||||
<p>Your username and password didn't match. Please try again.</p>
|
||||
{% endif %}
|
||||
|
||||
<form method="post" action="{% url 'django.contrib.auth.views.login' %}">
|
||||
{% csrf_token %}
|
||||
<table>
|
||||
<tr>
|
||||
<td>{{ form.username.label_tag }}</td>
|
||||
<td>{{ form.username }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{{ form.password.label_tag }}</td>
|
||||
<td>{{ form.password }}</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<input type="submit" value="login" />
|
||||
<input type="hidden" name="next" value="/" />
|
||||
</form>
|
||||
|
||||
{% endblock %}
|
Reference in New Issue
Block a user