src/ldtplatform/templates/registration/login.html
branchwith_hashcut_module
changeset 22 10389426d9c0
parent 0 87104b7cb3d6
child 99 c91c186c38e8
equal deleted inserted replaced
21:50a6ba97a22d 22:10389426d9c0
     1 {% extends "registration/base.html" %}
     1 {% extends "registration/base.html" %}
     2 {% load i18n %}
     2 {% load i18n %}
     3 {% block js_declaration %}
     3 {% load absstatic %}
     4 {{ block.super }}
     4 {% load static %}
     5 {% endblock %}
       
     6 
     5 
     7 {% block css_import %}
     6 {% block css_import %}
     8 	{{ block.super }}
     7     {{ block.super }}
     9 	<link rel="stylesheet" href="{{LDT_MEDIA_PREFIX}}css/ldt.css" />
     8     <link rel="stylesheet" href='{% absstatic "ldt/css/ldt.css" %}'/>
    10 	<link rel="stylesheet" href="{{LDT_MEDIA_PREFIX}}css/ldtform.css" />
     9     <link rel="stylesheet" href='{% absstatic "ldt/css/ldtform.css" %}' />
    11 {% endblock %}
    10 {% endblock %}
    12 
       
    13 
    11 
    14 {% block login %}
    12 {% block login %}
    15 {% endblock %}
    13 {% endblock %}
    16 
    14 
    17 {% block content_title %}{% trans 'Log in' %}{% endblock %}
    15 {% block content_title %}{% trans 'Log in' %}{% endblock %}
    18 {% block iricontent %}
    16 {% block iricontent %}
    19     {% if form.errors %}
    17     {% if form.errors %}
    20    	<p class="error">{% trans "Sorry, that's not a valid username or password." %}</p>
    18     <p class="error">{% trans "Sorry, that's not a valid username or password." %}</p>
    21    {% endif %}
    19    {% endif %}
    22   	<div class="span-24 last">
    20     <div class="span-24 last">
    23         <form action="" method='post' id="login-form">
    21         <form action="" method='post' id="login-form">
    24         	<div id="loginform_div" class="span-12">
    22             <div id="loginform_div" class="span-12">
    25             {% csrf_token %}
    23             {% csrf_token %}
    26             <input type="hidden" name="next" value="{{ next }}" />
    24             <input type="hidden" name="next" value="{{ next }}" />
    27 	        <ul id="login_fields_list">
    25             <ul id="login_fields_list">
    28 	        {{form.as_ul}}
    26             {{form.as_ul}}
    29 	        </ul>
    27             </ul>
    30             <ul>
    28             <ul>
    31                 <li><a href="{% url django.contrib.auth.views.password_reset  %}" >{% trans "Forget password?" %}</a></li>
    29                 <li><a href="{% url django.contrib.auth.views.password_reset  %}" >{% trans "Forget password?" %}</a></li>
    32             </ul>
    30             </ul>
    33             <div id="submitcontent-buttons-login" class="span-24 last">
    31             <div id="submitcontent-buttons-login" class="span-24 last">
    34                 <button class="button"type="submit" value="login">{% trans "login" %}</button>
    32                 <button class="button"type="submit" value="login">{% trans "login" %}</button>
    35             </div>
    33             </div>
    36             </div>
    34             </div>
    37 	    </form>
    35         </form>
    38         <div id="login_links" class="span-12 last">
    36         <div id="login_links" class="span-12 last">
    39             <div id="login_links_list" class="span-12 last">
    37             <div id="login_links_list" class="span-12 last">
    40             {% if social_list %}
    38             {% if social_list %}
    41             <p>{% trans "Or login with your external account" %}&nbsp;:</p>
    39             <p>{% trans "Or login with your external account" %}&nbsp;:</p>
    42             <ul>
    40             <ul>
    43             {% for backend_name in social_list %}
    41            {% for backend_name in social_list %}
    44             <li><a href="{{ backend_name }}"><img src="{{LDT_MEDIA_PREFIX}}img/logo_{{backend_name}}.png" />&nbsp;{{ backend_name }}</a></li>
    42              
    45             {% endfor %}
    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>
    46             {% comment %}{{social_list|safe}}{% endcomment %}
    44            
       
    45            {% endfor %}
       
    46            {% comment %}{{social_list|safe}}{% endcomment %}
    47             </ul>
    47             </ul>
    48             {% endif %}
    48             {% endif %}
    49             </div>
    49             </div>
    50         </div>
    50         </div>
    51 	</div> 
    51     </div> 
    52 
    52 
    53 {% endblock %}
    53 {% endblock %}
    54 
    54 
    55 
    55 
    56 
    56