web/ldtplatform/templates/registration/login.html
author verrierj
Wed, 21 Dec 2011 11:07:49 +0100
changeset 293 4fd110c8fa26
parent 60 77d07e49e245
child 338 631c0edee9ea
permissions -rw-r--r--
Projects and contents can be shared or not during edition and creation
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 %}
bdf22b140727 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
     3
{% block js_declaration %}{{ block.super }}
bdf22b140727 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
     4
    <script type="text/javascript">
bdf22b140727 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
     5
        $(document).ready(function() {
bdf22b140727 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
     6
            $("#login-form").validate();
bdf22b140727 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
     7
        });
bdf22b140727 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
     8
    </script>
bdf22b140727 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
     9
{% endblock %}
bdf22b140727 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    10
bdf22b140727 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    11
{% block css_import %}
bdf22b140727 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    12
	{{ block.super }}
bdf22b140727 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    13
	<link rel="stylesheet" href="{{LDT_MEDIA_PREFIX}}css/ldt.css" />
bdf22b140727 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    14
	<link rel="stylesheet" href="{{LDT_MEDIA_PREFIX}}css/ldtform.css" />
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
bdf22b140727 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    18
{% block login %}
bdf22b140727 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    19
{% endblock %}
bdf22b140727 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    20
bdf22b140727 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    21
{% block content_title %}{% trans 'Log in' %}{% endblock %}
bdf22b140727 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    22
{% block iricontent %}
bdf22b140727 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    23
    {% if form.errors %}
bdf22b140727 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    24
   	<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
    25
   {% endif %}
bdf22b140727 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    26
  	<div class="span-24 last">
bdf22b140727 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    27
        <form action="" method='post' id="login-form">
bdf22b140727 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    28
        	<div id="loginform_div" class="span-12">
bdf22b140727 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    29
            {% csrf_token %}
bdf22b140727 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    30
            <input type="hidden" name="next" value="{{ next }}" />
bdf22b140727 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    31
	        <ul id="login_fields_list">
bdf22b140727 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    32
	        {{form.as_ul}}
bdf22b140727 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    33
	        </ul>
60
77d07e49e245 Enhance login form and add french sentence for social_auth login.
cavaliet
parents: 59
diff changeset
    34
            <ul>
77d07e49e245 Enhance login form and add french sentence for social_auth login.
cavaliet
parents: 59
diff changeset
    35
                <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
    36
            </ul>
77d07e49e245 Enhance login form and add french sentence for social_auth login.
cavaliet
parents: 59
diff changeset
    37
            <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
    38
                <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
    39
            </div>
77d07e49e245 Enhance login form and add french sentence for social_auth login.
cavaliet
parents: 59
diff changeset
    40
            </div>
77d07e49e245 Enhance login form and add french sentence for social_auth login.
cavaliet
parents: 59
diff changeset
    41
	    </form>
77d07e49e245 Enhance login form and add french sentence for social_auth login.
cavaliet
parents: 59
diff changeset
    42
        <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
    43
            <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
    44
            {% 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
    45
            <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
    46
            <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
    47
            {% 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
    48
            <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
    49
            {% 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
    50
            {% 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
    51
            </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
    52
            {% endif %}
60
77d07e49e245 Enhance login form and add french sentence for social_auth login.
cavaliet
parents: 59
diff changeset
    53
            </div>
77d07e49e245 Enhance login form and add french sentence for social_auth login.
cavaliet
parents: 59
diff changeset
    54
        </div>
0
bdf22b140727 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    55
	</div> 
bdf22b140727 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    56
bdf22b140727 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    57
{% endblock %}
bdf22b140727 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    58
bdf22b140727 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    59
bdf22b140727 first import
ymh <ymh.work@gmail.com>
parents:
diff changeset
    60