equal
deleted
inserted
replaced
|
1 {% extends "registration/base.html" %} |
|
2 {% load i18n %} |
|
3 {% load static %} |
|
4 |
|
5 {% block css_import %} |
|
6 {{ block.super }} |
|
7 <link rel="stylesheet" href='{% static "ldt/css/ldt.css" %}'/> |
|
8 <link rel="stylesheet" href='{% static "ldt/css/ldtform.css" %}' /> |
|
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 <div class="span-24 last"> |
|
20 <form action="" method='post' id="login-form"> |
|
21 <div id="loginform_div" class="span-12"> |
|
22 {% csrf_token %} |
|
23 <input type="hidden" name="next" value="{{ next }}" /> |
|
24 <ul id="login_fields_list"> |
|
25 {{form.as_ul}} |
|
26 </ul> |
|
27 <ul> |
|
28 <li><a href="{% url 'django.contrib.auth.views.password_reset' %}" >{% trans "Forget password?" %}</a></li> |
|
29 </ul> |
|
30 <div id="submitcontent-buttons-login" class="span-24 last"> |
|
31 <button class="button"type="submit" value="login">{% trans "login" %}</button> |
|
32 </div> |
|
33 </div> |
|
34 </form> |
|
35 <div id="login_links" class="span-12 last"> |
|
36 <div id="login_links_list" class="span-12 last"> |
|
37 {% if social_list %} |
|
38 <p>{% trans "Or login with your external account" %} :</p> |
|
39 <ul> |
|
40 {% for backend_name in social_list %} |
|
41 |
|
42 <li><a href="{{ backend_name }}"><img src='{% static "ldt" %}/img/logo_{{backend_name}}.png' class='social_link' id="{{backend_name}}_logo_id"/> {{ backend_name }}</a></li> |
|
43 |
|
44 {% endfor %} |
|
45 {% comment %}{{social_list|safe}}{% endcomment %} |
|
46 </ul> |
|
47 {% endif %} |
|
48 </div> |
|
49 </div> |
|
50 </div> |
|
51 |
|
52 {% endblock %} |
|
53 |
|
54 |
|
55 |