|
119
|
1 |
{% extends "p4l/base.html" %} |
|
24
|
2 |
{% load i18n %} |
|
|
3 |
|
|
|
4 |
{% block page_title %}{% trans 'login' %}{% endblock %} |
|
|
5 |
|
|
|
6 |
{% block content %} |
|
|
7 |
{% if form.errors %} |
|
|
8 |
<p class="error">{% trans "Sorry, that's not a valid username or password." %}</p> |
|
|
9 |
{% endif %} |
|
|
10 |
<form action="{% url 'login' %}" method='post' class="form-horizontal" role="form"> |
|
|
11 |
{% csrf_token %} |
|
|
12 |
<input type="hidden" name="next" value="{% if next %}{{ next }}{% else %}{% url 'p4l_home' %}{% endif %}" /> |
|
|
13 |
<div class="form-group"> |
|
|
14 |
<label class="col-lg-2 control-label" for="id_username">{% trans 'Username' %} :</label> |
|
|
15 |
<div class="col-lg-10"> |
|
|
16 |
<input id="id_username" type="text" name="username" maxlength="254" class="form-control" placeholder="{% trans 'Username' %}" required="required"> |
|
|
17 |
</div> |
|
|
18 |
</div> |
|
|
19 |
<div class="form-group"> |
|
|
20 |
<label class="col-lg-2 control-label" for="id_password">{% trans 'Password' %} :</label> |
|
|
21 |
<div class="col-lg-10"> |
|
|
22 |
<input id="id_password" type="password" name="password" class="form-control" placeholder="{% trans 'Password' %}" required="required"> |
|
|
23 |
</div> |
|
|
24 |
</div> |
|
|
25 |
<div class="form-group"> |
|
|
26 |
<div class="col-lg-offset-2 col-lg-10"> |
|
|
27 |
<button type="submit" class="btn btn-default">{% trans "login" %}</button> |
|
|
28 |
</div> |
|
|
29 |
</div> |
|
|
30 |
</form> |
|
|
31 |
{% endblock %} |