blob: b9952309836050f327c321ffdca5053114f8dd26 (
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
|
{% extends "layout.html" %}
{% block content %}
<div class="container">
<div class="row justify-content-center">
<div class="col-md-6">
<h2>{{ _('Log In') }}</h2>
<form action="{{ url_for('login') }}" method="post">
{{ form.hidden_tag() }}
<div class="input-group mb-3">
{{ 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="input-group mb-3">
{{ 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-primary") }}
{% if self_registration %}<a href="/signup" class="btn btn-info">{{ _('Sign up') }}</a>{% endif %}
</form>
</div>
</div>
</div><!-- /.container -->
{% endblock %}
|