~cedric/newspipe

ref: 0cd84bb3758d1500f8282f2dc28e38bc25e9fef5 newspipe/newspipe/templates/signup.html -rw-r--r-- 1.6 KiB
0cd84bb3C├ędric Bonhomme chg: [ui] improved forms in navbar. 8 months ago
                                                                                
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
{% extends "layout.html" %}
{% block content %}
<div class="container">
    <div class="row justify-content-center">
        <div class="col-md-6">
            <form action="" method="post" name="save">
                {{ form.hidden_tag() }}
                <div class="input-group mb-3">
                    {{ form.nickname(class_="form-control", placeholder=_('Your nickname')) }}
                    {% for error in form.nickname.errors %} <span style="color: red;">{{ error }}<br /></span>{% endfor %}
                    &nbsp;<span class="text-muted">{{ _('Letters, numbers, dots and underscores only.') }}</span>
                </div>
                <p class="help-block"></p>
                <div class="input-group mb-3">
                    {{ form.email(class_="form-control", placeholder=_('Your email')) }}
                    {% for error in form.email.errors %} <span style="color: red;">{{ error }}<br /></span>{% endfor %}
                    &nbsp;<span class="text-muted">{{ _("Only for account activation. Your email won't be stored.") }}</span>
                </div>
                <div class="input-group mb-3">
                    {{ form.password(class_="form-control", placeholder=_('Your password')) }}
                    {% for error in form.password.errors %} <span style="color: red;">{{ error }}<br /></span>{% endfor %}
                    &nbsp;<span class="text-muted">{{ _('Minimum 6 characters.') }}</span>
                </div>
                <br />
                {{ form.submit(class_="btn btn-primary") }}
            </form>
        </div>
    </div>
</div><!-- /.container -->
{% endblock %}