equal
deleted
inserted
replaced
|
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 <ul id="login_fields_list"> |
|
32 {{form.as_ul}} |
|
33 </ul> |
|
34 <ul> |
|
35 <li><a href="{% url django.contrib.auth.views.password_reset %}" >{% trans "Forget password?" %}</a></li> |
|
36 </ul> |
|
37 <div id="submitcontent-buttons-login" class="span-24 last"> |
|
38 <button class="button"type="submit" value="login">{% trans "login" %}</button> |
|
39 </div> |
|
40 </div> |
|
41 </form> |
|
42 <div id="login_links" class="span-12 last"> |
|
43 <div id="login_links_list" class="span-12 last"> |
|
44 {% if social_list %} |
|
45 <p>{% trans "Or login with your external account" %} :</p> |
|
46 <ul> |
|
47 {% for backend_name in social_list %} |
|
48 <li><a href="{{ backend_name }}"><img src="{{LDT_MEDIA_PREFIX}}img/logo_{{backend_name}}.png" /> {{ backend_name }}</a></li> |
|
49 {% endfor %} |
|
50 {% comment %}{{social_list|safe}}{% endcomment %} |
|
51 </ul> |
|
52 {% endif %} |
|
53 </div> |
|
54 </div> |
|
55 </div> |
|
56 |
|
57 {% endblock %} |
|
58 |
|
59 |
|
60 |