Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/webapp/accounts/templates/login.html
blob: 844be86bfa46c03b57c384ca479bbdacd3ca2ea2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
{% extends "base-main-public.html" %}
{% load i18n %}

{% block main_container %}

    <div class="well">
        <form method="post" action="{% url accounts:login %}">{% csrf_token %}

            <fieldset>
                <legend>{% trans "Login" %}</legend>

                {% if form.errors and not form.errors.password and not form.errors.username %}
                    <div class="control-group error">
                        <div class="controls">
                            <span class="help-inline">
                            {% for error in form.errors.values %}
                                {{ error }}
                            {% endfor %}
                            </span>
                        </div>
                    </div>
                {% endif %}

                <div class="control-group {% if form.errors.username %}error{% endif %}">
                    <label>{{ form.username.label }}</label>
                    <div class="controls">
                        {{ form.username }}
                        <span class="help-inline">
                            {% if form.errors.username %}{{ form.errors.username }}{% endif %}
                        </span>
                    </div>
                </div>

                <div class="control-group {% if form.errors.password %}error{% endif %}">
                    <label>{{ form.password.label }}</label>
                    <div class="controls">
                        {{ form.password }}
                        <span class="help-inline">{% if form.errors.password %}{{ form.errors.password }}{% endif %}</span>
                    </div>
                </div>

                <input type="hidden" name="next" value="{{ next }}" />

                <button type="submit" class="btn">{% trans "login" %}</button>

            </fieldset>
        </form>
    </div>

{% endblock %}