author | ymh <ymh.work@gmail.com> |
Fri, 20 Jan 2017 10:46:47 +0100 | |
changeset 319 | 4cccc878f221 |
parent 100 | 71b8c0bf5882 |
permissions | -rw-r--r-- |
0 | 1 |
{% extends "registration/base.html" %} |
2 |
{% load i18n %} |
|
22 | 3 |
{% load static %} |
0 | 4 |
|
5 |
{% block css_import %} |
|
22 | 6 |
{{ block.super }} |
99 | 7 |
<link rel="stylesheet" href='{% static "ldt/css/ldt.css" %}'/> |
8 |
<link rel="stylesheet" href='{% static "ldt/css/ldtform.css" %}' /> |
|
0 | 9 |
{% endblock %} |
10 |
||
11 |
{% block login %} |
|
12 |
{% endblock %} |
|
13 |
||
14 |
{% block content_title %}{% trans 'Log in' %}{% endblock %} |
|
15 |
{% block iricontent %} |
|
16 |
{% if form.errors %} |
|
22 | 17 |
<p class="error">{% trans "Sorry, that's not a valid username or password." %}</p> |
0 | 18 |
{% endif %} |
22 | 19 |
<div class="span-24 last"> |
0 | 20 |
<form action="" method='post' id="login-form"> |
22 | 21 |
<div id="loginform_div" class="span-12"> |
0 | 22 |
{% csrf_token %} |
23 |
<input type="hidden" name="next" value="{{ next }}" /> |
|
22 | 24 |
<ul id="login_fields_list"> |
25 |
{{form.as_ul}} |
|
26 |
</ul> |
|
0 | 27 |
<ul> |
100
71b8c0bf5882
updarte url templatetag for django 1.5
ymh <ymh.work@gmail.com>
parents:
99
diff
changeset
|
28 |
<li><a href="{% url 'django.contrib.auth.views.password_reset' %}" >{% trans "Forget password?" %}</a></li> |
0 | 29 |
</ul> |
30 |
<div id="submitcontent-buttons-login" class="span-24 last"> |
|
31 |
<button class="button"type="submit" value="login">{% trans "login" %}</button> |
|
32 |
</div> |
|
33 |
</div> |
|
22 | 34 |
</form> |
0 | 35 |
<div id="login_links" class="span-12 last"> |
36 |
<div id="login_links_list" class="span-12 last"> |
|
37 |
{% if social_list %} |
|
38 |
<p>{% trans "Or login with your external account" %} :</p> |
|
39 |
<ul> |
|
22 | 40 |
{% for backend_name in social_list %} |
41 |
||
99 | 42 |
<li><a href="{{ backend_name }}"><img src='{% static "ldt" %}/img/logo_{{backend_name}}.png' class='social_link' id="{{backend_name}}_logo_id"/> {{ backend_name }}</a></li> |
22 | 43 |
|
44 |
{% endfor %} |
|
45 |
{% comment %}{{social_list|safe}}{% endcomment %} |
|
0 | 46 |
</ul> |
47 |
{% endif %} |
|
48 |
</div> |
|
49 |
</div> |
|
22 | 50 |
</div> |
0 | 51 |
|
52 |
{% endblock %} |
|
53 |
||
54 |
||
55 |