| author | cavaliet |
| Mon, 08 Jul 2013 18:55:01 +0200 | |
| changeset 229 | 8a02a23cdaba |
| parent 149 | af59627418e7 |
| child 230 | fb6932ba9a2b |
| permissions | -rw-r--r-- |
| 149 | 1 |
{% extends "egonomy_newbase.html" %} |
|
23
bb7819c8d7c2
first step user login/logout. Create fragment works. Views and templates adapted with real data model.
cavaliet
parents:
diff
changeset
|
2 |
{% load static %} |
|
bb7819c8d7c2
first step user login/logout. Create fragment works. Views and templates adapted with real data model.
cavaliet
parents:
diff
changeset
|
3 |
{% load i18n %} |
|
bb7819c8d7c2
first step user login/logout. Create fragment works. Views and templates adapted with real data model.
cavaliet
parents:
diff
changeset
|
4 |
|
|
bb7819c8d7c2
first step user login/logout. Create fragment works. Views and templates adapted with real data model.
cavaliet
parents:
diff
changeset
|
5 |
{% block title %}{% trans "Login" %}{% endblock %} |
|
bb7819c8d7c2
first step user login/logout. Create fragment works. Views and templates adapted with real data model.
cavaliet
parents:
diff
changeset
|
6 |
|
|
bb7819c8d7c2
first step user login/logout. Create fragment works. Views and templates adapted with real data model.
cavaliet
parents:
diff
changeset
|
7 |
{% block content %} |
|
bb7819c8d7c2
first step user login/logout. Create fragment works. Views and templates adapted with real data model.
cavaliet
parents:
diff
changeset
|
8 |
{% if form.errors %} |
|
bb7819c8d7c2
first step user login/logout. Create fragment works. Views and templates adapted with real data model.
cavaliet
parents:
diff
changeset
|
9 |
<p class="error">{% trans "Sorry, that's not a valid username or password." %}</p> |
| 229 | 10 |
{% endif %} |
11 |
<div class="register"> |
|
|
23
bb7819c8d7c2
first step user login/logout. Create fragment works. Views and templates adapted with real data model.
cavaliet
parents:
diff
changeset
|
12 |
<form action="" method='post' id="login-form"> |
|
bb7819c8d7c2
first step user login/logout. Create fragment works. Views and templates adapted with real data model.
cavaliet
parents:
diff
changeset
|
13 |
{% csrf_token %} |
| 26 | 14 |
<input type="hidden" name="next" value="{% if next %}{{ next }}{% else %}{% url 'home' %}{% endif %}" /> |
| 229 | 15 |
{{form.as_p}} |
16 |
<button class="button"type="submit" value="login">{% trans "login" %}</button> |
|
|
23
bb7819c8d7c2
first step user login/logout. Create fragment works. Views and templates adapted with real data model.
cavaliet
parents:
diff
changeset
|
17 |
</form> |
| 229 | 18 |
<p><a href="{% url 'registration_register' %}">{% trans "Still not a user ? Create an account" %}</a> |
| 149 | 19 |
</div> |
|
23
bb7819c8d7c2
first step user login/logout. Create fragment works. Views and templates adapted with real data model.
cavaliet
parents:
diff
changeset
|
20 |
{% endblock %} |
|
bb7819c8d7c2
first step user login/logout. Create fragment works. Views and templates adapted with real data model.
cavaliet
parents:
diff
changeset
|
21 |
|
|
bb7819c8d7c2
first step user login/logout. Create fragment works. Views and templates adapted with real data model.
cavaliet
parents:
diff
changeset
|
22 |
|
|
bb7819c8d7c2
first step user login/logout. Create fragment works. Views and templates adapted with real data model.
cavaliet
parents:
diff
changeset
|
23 |