0
|
1 |
{% extends "registration/base.html" %} |
|
2 |
{% load i18n %} |
|
3 |
{% block js_declaration %}{{ block.super }} |
|
4 |
<script type="text/javascript"> |
|
5 |
$(document).ready(function() { |
|
6 |
$("#login-form").validate(); |
|
7 |
}); |
|
8 |
</script> |
|
9 |
{% endblock %} |
|
10 |
|
|
11 |
{% block login %} |
|
12 |
{% endblock %} |
|
13 |
|
|
14 |
{% block content_title %}{% trans 'Log in' %}{% endblock %} |
|
15 |
{% block iricontent %} |
|
16 |
{% if form.errors %} |
|
17 |
<p class="error">{% trans "Sorry, that's not a valid username or password." %}</p> |
|
18 |
{% endif %} |
|
19 |
|
|
20 |
<form action="" method='post' id="login-form"> |
|
21 |
{% csrf_token %} |
|
22 |
<input type="hidden" name="next" value="{% url ldt.user.views.profile%}" /> |
|
23 |
<ul id="login_fields_list"> |
|
24 |
{{form.as_ul}} |
|
25 |
<li><input class="button"type="submit" value="{% trans "login" %}" /></li> |
|
26 |
</ul> |
|
27 |
</form> |
|
28 |
<ul id="login_links_list"> |
|
29 |
<li><a href="{% url registration.views.register %}" >{% trans "Create an account" %}</a></li> |
|
30 |
<li><a href="{% url django.contrib.auth.views.password_reset %}" >{% trans "Forget password?" %}</a></li> |
|
31 |
</ul> |
|
32 |
{% endblock %} |
|
33 |
|
|
34 |
|
|
35 |
|