equal
deleted
inserted
replaced
1 {% extends "registration/base.html" %} |
1 {% extends "registration/base.html" %} |
2 {% load i18n %} |
2 {% load i18n %} |
3 {% load absstatic %} |
3 {% load absstatic %} |
4 {% load static %} |
4 {% load static %} |
5 |
5 |
6 {% block js_declaration %} |
|
7 |
|
8 <script type="text/javascript"> |
|
9 $(document).ready(function(){ |
|
10 $('.social_link').each(function(i){ |
|
11 {% if social_list %} |
|
12 {% for backend_name in social_list %} |
|
13 var coucou='ldt/img/logo_{{backend_name}}.png' |
|
14 {% with "ldt/img/logo_"|add:backend_name|add:".png" as src_path %} |
|
15 document.getElementById('{{backend_name}}_logo_id').src='{% absstatic src_path %}'; |
|
16 {% endwith %} |
|
17 {% endfor %} |
|
18 {% endif %} |
|
19 }); |
|
20 }); |
|
21 </script> |
|
22 {% endblock %} |
|
23 {% block css_import %} |
6 {% block css_import %} |
24 {{ block.super }} |
7 {{ block.super }} |
25 <link rel="stylesheet" href='{% absstatic "ldt/css/ldt.css" %}'/> |
8 <link rel="stylesheet" href='{% absstatic "ldt/css/ldt.css" %}'/> |
26 <link rel="stylesheet" href='{% absstatic "ldt/css/ldtform.css" %}' /> |
9 <link rel="stylesheet" href='{% absstatic "ldt/css/ldtform.css" %}' /> |
27 {% endblock %} |
10 {% endblock %} |
28 |
|
29 |
11 |
30 {% block login %} |
12 {% block login %} |
31 {% endblock %} |
13 {% endblock %} |
32 |
14 |
33 {% block content_title %}{% trans 'Log in' %}{% endblock %} |
15 {% block content_title %}{% trans 'Log in' %}{% endblock %} |
56 {% if social_list %} |
38 {% if social_list %} |
57 <p>{% trans "Or login with your external account" %} :</p> |
39 <p>{% trans "Or login with your external account" %} :</p> |
58 <ul> |
40 <ul> |
59 {% for backend_name in social_list %} |
41 {% for backend_name in social_list %} |
60 |
42 |
61 <li><a href="{{ backend_name }}"><img class='social_link' id="{{backend_name}}_logo_id"/> {{ backend_name }}</a></li> |
43 <li><a href="{{ backend_name }}"><img src='{% absstatic "ldt" %}/img/logo_{{backend_name}}.png' class='social_link' id="{{backend_name}}_logo_id"/> {{ backend_name }}</a></li> |
62 |
44 |
63 {% endfor %} |
45 {% endfor %} |
64 {% comment %}{{social_list|safe}}{% endcomment %} |
46 {% comment %}{{social_list|safe}}{% endcomment %} |
65 </ul> |
47 </ul> |
66 {% endif %} |
48 {% endif %} |