-
Notifications
You must be signed in to change notification settings - Fork 114
/
_login_form.html
27 lines (25 loc) · 965 Bytes
/
_login_form.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
{# login form called via an include statement #}
{% load i18n %}
{% if form.errors %}
<div class="alert alert-error">
<strong>{% trans 'Alert!' %}</strong> {% trans "Your username and password didn't match. Please try again."%}
</div>
{% endif %}
<form class="well form-vertical" method="post" action="{% url django.contrib.auth.views.login %}">{% csrf_token %}
{{ form.username.label_tag }}
<div class="input-prepend">
<span class="add-on">
<i class="icon-user"></i>
</span>
{{ form.username }}
</div>
{{ form.password.label_tag }}
<div class="input-prepend">
<span class="add-on">
<i class="icon-lock"></i>
</span>
{{ form.password }}
</div>
<input type="hidden" name="next" value="{{ next }}" />
<button type="submit" class="btn">{% trans 'login' %}</button>
</form>