web/ldtplatform/templates/registration/login.html
author ymh <ymh.work@gmail.com>
Fri, 15 Jun 2012 02:36:57 +0200
changeset 688 619222c32ade
parent 522 7d6630fd287e
child 995 94f9d36371f6
permissions -rw-r--r--
correct chmod
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
0
bdf22b140727 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
     1
{% extends "registration/base.html" %}
bdf22b140727 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
     2
{% load i18n %}
522
7d6630fd287e Remove "clic ici" link from login page
verrierj
parents: 338
diff changeset
     3
{% block js_declaration %}
7d6630fd287e Remove "clic ici" link from login page
verrierj
parents: 338
diff changeset
     4
{{ block.super }}
0
bdf22b140727 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
     5
{% endblock %}
bdf22b140727 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
     6
bdf22b140727 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
     7
{% block css_import %}
bdf22b140727 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
     8
	{{ block.super }}
bdf22b140727 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
     9
	<link rel="stylesheet" href="{{LDT_MEDIA_PREFIX}}css/ldt.css" />
bdf22b140727 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    10
	<link rel="stylesheet" href="{{LDT_MEDIA_PREFIX}}css/ldtform.css" />
bdf22b140727 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    11
{% endblock %}
bdf22b140727 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    12
bdf22b140727 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    13
bdf22b140727 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    14
{% block login %}
bdf22b140727 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    15
{% endblock %}
bdf22b140727 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    16
bdf22b140727 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    17
{% block content_title %}{% trans 'Log in' %}{% endblock %}
bdf22b140727 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    18
{% block iricontent %}
bdf22b140727 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    19
    {% if form.errors %}
bdf22b140727 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    20
   	<p class="error">{% trans "Sorry, that's not a valid username or password." %}</p>
bdf22b140727 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    21
   {% endif %}
bdf22b140727 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    22
  	<div class="span-24 last">
bdf22b140727 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    23
        <form action="" method='post' id="login-form">
bdf22b140727 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    24
        	<div id="loginform_div" class="span-12">
bdf22b140727 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    25
            {% csrf_token %}
bdf22b140727 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    26
            <input type="hidden" name="next" value="{{ next }}" />
bdf22b140727 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    27
	        <ul id="login_fields_list">
bdf22b140727 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    28
	        {{form.as_ul}}
bdf22b140727 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    29
	        </ul>
60
77d07e49e245 Enhance login form and add french sentence for social_auth login.
cavaliet
parents: 59
diff changeset
    30
            <ul>
77d07e49e245 Enhance login form and add french sentence for social_auth login.
cavaliet
parents: 59
diff changeset
    31
                <li><a href="{% url django.contrib.auth.views.password_reset  %}" >{% trans "Forget password?" %}</a></li>
77d07e49e245 Enhance login form and add french sentence for social_auth login.
cavaliet
parents: 59
diff changeset
    32
            </ul>
77d07e49e245 Enhance login form and add french sentence for social_auth login.
cavaliet
parents: 59
diff changeset
    33
            <div id="submitcontent-buttons-login" class="span-24 last">
77d07e49e245 Enhance login form and add french sentence for social_auth login.
cavaliet
parents: 59
diff changeset
    34
                <button class="button"type="submit" value="login">{% trans "login" %}</button>
77d07e49e245 Enhance login form and add french sentence for social_auth login.
cavaliet
parents: 59
diff changeset
    35
            </div>
77d07e49e245 Enhance login form and add french sentence for social_auth login.
cavaliet
parents: 59
diff changeset
    36
            </div>
77d07e49e245 Enhance login form and add french sentence for social_auth login.
cavaliet
parents: 59
diff changeset
    37
	    </form>
77d07e49e245 Enhance login form and add french sentence for social_auth login.
cavaliet
parents: 59
diff changeset
    38
        <div id="login_links" class="span-12 last">
77d07e49e245 Enhance login form and add french sentence for social_auth login.
cavaliet
parents: 59
diff changeset
    39
            <div id="login_links_list" class="span-12 last">
59
a06fab661ac4 modifs for not to modify django-1.3.tar.gz, better login management, add social_auth backend icons.
cavaliet
parents: 57
diff changeset
    40
            {% if social_list %}
a06fab661ac4 modifs for not to modify django-1.3.tar.gz, better login management, add social_auth backend icons.
cavaliet
parents: 57
diff changeset
    41
            <p>{% trans "Or login with your external account" %}&nbsp;:</p>
a06fab661ac4 modifs for not to modify django-1.3.tar.gz, better login management, add social_auth backend icons.
cavaliet
parents: 57
diff changeset
    42
            <ul>
a06fab661ac4 modifs for not to modify django-1.3.tar.gz, better login management, add social_auth backend icons.
cavaliet
parents: 57
diff changeset
    43
            {% for backend_name in social_list %}
a06fab661ac4 modifs for not to modify django-1.3.tar.gz, better login management, add social_auth backend icons.
cavaliet
parents: 57
diff changeset
    44
            <li><a href="{{ backend_name }}"><img src="{{LDT_MEDIA_PREFIX}}img/logo_{{backend_name}}.png" />&nbsp;{{ backend_name }}</a></li>
a06fab661ac4 modifs for not to modify django-1.3.tar.gz, better login management, add social_auth backend icons.
cavaliet
parents: 57
diff changeset
    45
            {% endfor %}
a06fab661ac4 modifs for not to modify django-1.3.tar.gz, better login management, add social_auth backend icons.
cavaliet
parents: 57
diff changeset
    46
            {% comment %}{{social_list|safe}}{% endcomment %}
a06fab661ac4 modifs for not to modify django-1.3.tar.gz, better login management, add social_auth backend icons.
cavaliet
parents: 57
diff changeset
    47
            </ul>
a06fab661ac4 modifs for not to modify django-1.3.tar.gz, better login management, add social_auth backend icons.
cavaliet
parents: 57
diff changeset
    48
            {% endif %}
60
77d07e49e245 Enhance login form and add french sentence for social_auth login.
cavaliet
parents: 59
diff changeset
    49
            </div>
77d07e49e245 Enhance login form and add french sentence for social_auth login.
cavaliet
parents: 59
diff changeset
    50
        </div>
0
bdf22b140727 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    51
	</div> 
bdf22b140727 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    52
bdf22b140727 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    53
{% endblock %}
bdf22b140727 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    54
bdf22b140727 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    55
bdf22b140727 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    56