aboutsummaryrefslogtreecommitdiff
path: root/src/web/templates/login.html
blob: d2724ac34d4a9b9e58d7e52a33dc3c113dad62dd (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
{% extends "layout.html" %}
{% block content %}
<div class="container">
    <div class="well">
        <h2>{{ _('Log In') }}</h2>
        <form action="{{ url_for('login') }}" method=post>
            {{ form.hidden_tag() }}

            <div class="form-group">
            {{ form.nickmane(class_="form-control", placeholder=_('Your nickname')) }}
            </div>
            {% for message in form.nickmane.errors %}
                <div class="alert alert-warning" role="alert">{{ message }}</div>
            {% endfor %}

            <div class="form-group">
            {{ form.password(class_="form-control", placeholder=_('Your Password')) }}
            </div>
            {% for message in form.password.errors %}
                <div class="alert alert-warning" role="alert">{{ message }}</div>
            {% endfor %}

            {{ form.submit(class_="btn btn-default") }}
        </form>
    </div>
    <a href="/signup" class="btn btn-default">{{ _('Sign up') }}</a>
</div><!-- /.container -->
{% endblock %}
bgstack15