| author | cavaliet |
| Thu, 14 Apr 2011 17:39:36 +0200 | |
| changeset 57 | 795f01224eef |
| parent 56 | 125fc6df230d |
| child 59 | a06fab661ac4 |
| permissions | -rw-r--r-- |
| 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 css_import %} |
|
12 |
{{ block.super }} |
|
13 |
<link rel="stylesheet" href="{{LDT_MEDIA_PREFIX}}css/ldt.css" /> |
|
14 |
<link rel="stylesheet" href="{{LDT_MEDIA_PREFIX}}css/ldtform.css" /> |
|
15 |
{% endblock %} |
|
16 |
||
17 |
||
18 |
{% block login %} |
|
19 |
{% endblock %} |
|
20 |
||
21 |
{% block content_title %}{% trans 'Log in' %}{% endblock %} |
|
22 |
{% block iricontent %} |
|
23 |
{% if form.errors %} |
|
24 |
<p class="error">{% trans "Sorry, that's not a valid username or password." %}</p> |
|
25 |
{% endif %} |
|
26 |
<div class="span-24 last"> |
|
27 |
<form action="" method='post' id="login-form"> |
|
28 |
<div id="loginform_div" class="span-12"> |
|
29 |
{% csrf_token %} |
|
30 |
<input type="hidden" name="next" value="{{ next }}" /> |
|
31 |
||
32 |
<ul id="login_fields_list"> |
|
33 |
{{form.as_ul}} |
|
34 |
</ul> |
|
| 56 | 35 |
<p>{% trans "Or login with your external account" %}</p> |
|
57
795f01224eef
changes after social_auth integration, new way to create the
cavaliet
parents:
56
diff
changeset
|
36 |
{{social_list|safe}} |
| 0 | 37 |
</div> |
38 |
<div id="login_links" class="span-12 last"> |
|
39 |
<div id="login_links_list" class="span-12 last"> |
|
40 |
<ul> |
|
41 |
<li><a href="{% url django.contrib.auth.views.password_reset %}" >{% trans "Forget password?" %}</a></li> |
|
42 |
</ul> |
|
43 |
</div> |
|
44 |
</div> |
|
45 |
<div id="submitcontent" class="span-24 last"> |
|
46 |
<div id="submitcontent-buttons" class="span-24 last"> |
|
47 |
<button class="button"type="submit" value="login">{% trans "login" %}</button> |
|
48 |
</div> |
|
49 |
</div> |
|
50 |
</form> |
|
51 |
</div> |
|
52 |
||
53 |
{% endblock %} |
|
54 |
||
55 |
||
56 |