src/egonomy/templates/registration/login.html
author cavaliet
Mon, 08 Jul 2013 18:55:01 +0200
changeset 229 8a02a23cdaba
parent 149 af59627418e7
child 230 fb6932ba9a2b
permissions -rw-r--r--
registration first step
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
149
af59627418e7 view fragment with new style
cavaliet
parents: 30
diff changeset
     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
8a02a23cdaba registration first step
cavaliet
parents: 149
diff changeset
    10
    {% endif %}
8a02a23cdaba registration first step
cavaliet
parents: 149
diff changeset
    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
a7ace38e92a4 update languages. little debug.
cavaliet
parents: 23
diff changeset
    14
            <input type="hidden" name="next" value="{% if next %}{{ next }}{% else %}{% url 'home' %}{% endif %}" />
229
8a02a23cdaba registration first step
cavaliet
parents: 149
diff changeset
    15
            {{form.as_p}}
8a02a23cdaba registration first step
cavaliet
parents: 149
diff changeset
    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
8a02a23cdaba registration first step
cavaliet
parents: 149
diff changeset
    18
        <p><a href="{% url 'registration_register' %}">{% trans "Still not a user ? Create an account" %}</a>
149
af59627418e7 view fragment with new style
cavaliet
parents: 30
diff changeset
    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