src/ldtplatform/templates/registration/login.html
changeset 105 665f520f23ae
parent 100 71b8c0bf5882
equal deleted inserted replaced
98:b94866be0f53 105:665f520f23ae
     1 {% extends "registration/base.html" %}
     1 {% extends "registration/base.html" %}
     2 {% load i18n %}
     2 {% load i18n %}
     3 {% load absstatic %}
       
     4 {% load static %}
     3 {% load static %}
     5 
     4 
     6 {% block css_import %}
     5 {% block css_import %}
     7     {{ block.super }}
     6     {{ block.super }}
     8     <link rel="stylesheet" href='{% absstatic "ldt/css/ldt.css" %}'/>
     7     <link rel="stylesheet" href='{% static "ldt/css/ldt.css" %}'/>
     9     <link rel="stylesheet" href='{% absstatic "ldt/css/ldtform.css" %}' />
     8     <link rel="stylesheet" href='{% static "ldt/css/ldtform.css" %}' />
    10 {% endblock %}
     9 {% endblock %}
    11 
    10 
    12 {% block login %}
    11 {% block login %}
    13 {% endblock %}
    12 {% endblock %}
    14 
    13 
    24             <input type="hidden" name="next" value="{{ next }}" />
    23             <input type="hidden" name="next" value="{{ next }}" />
    25             <ul id="login_fields_list">
    24             <ul id="login_fields_list">
    26             {{form.as_ul}}
    25             {{form.as_ul}}
    27             </ul>
    26             </ul>
    28             <ul>
    27             <ul>
    29                 <li><a href="{% url django.contrib.auth.views.password_reset  %}" >{% trans "Forget password?" %}</a></li>
    28                 <li><a href="{% url 'django.contrib.auth.views.password_reset'  %}" >{% trans "Forget password?" %}</a></li>
    30             </ul>
    29             </ul>
    31             <div id="submitcontent-buttons-login" class="span-24 last">
    30             <div id="submitcontent-buttons-login" class="span-24 last">
    32                 <button class="button"type="submit" value="login">{% trans "login" %}</button>
    31                 <button class="button"type="submit" value="login">{% trans "login" %}</button>
    33             </div>
    32             </div>
    34             </div>
    33             </div>
    38             {% if social_list %}
    37             {% if social_list %}
    39             <p>{% trans "Or login with your external account" %}&nbsp;:</p>
    38             <p>{% trans "Or login with your external account" %}&nbsp;:</p>
    40             <ul>
    39             <ul>
    41            {% for backend_name in social_list %}
    40            {% for backend_name in social_list %}
    42              
    41              
    43             <li><a href="{{ backend_name }}"><img src='{% absstatic "ldt" %}/img/logo_{{backend_name}}.png' class='social_link' id="{{backend_name}}_logo_id"/>&nbsp;{{ backend_name }}</a></li>
    42             <li><a href="{{ backend_name }}"><img src='{% static "ldt" %}/img/logo_{{backend_name}}.png' class='social_link' id="{{backend_name}}_logo_id"/>&nbsp;{{ backend_name }}</a></li>
    44            
    43            
    45            {% endfor %}
    44            {% endfor %}
    46            {% comment %}{{social_list|safe}}{% endcomment %}
    45            {% comment %}{{social_list|safe}}{% endcomment %}
    47             </ul>
    46             </ul>
    48             {% endif %}
    47             {% endif %}