aboutsummaryrefslogtreecommitdiff
path: root/src/main/resources/templates/views/signup.html
blob: d3742734c9bb4cb9d65d504ea5acc0374a202bac (plain) (blame)
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
{% extends "layouts/default" %}
{% block content %}
<h1 class="signup-h1">
    {% if type | slice(0, 1) == 'f' %}
    <img src="//static.juick.com/settings/facebook.png" alt="Facebook"/>
    {% elseif type | slice(0, 1)  == 'v' %}
    <img src="//static.juick.com/settings/vk.png" alt="VKontakte"/>
    {% elseif type | slice(0, 1)  == 'e' %}
    <img src="//static.juick.com/settings/email.png" alt="Email"/>
    {% elseif type | slice(0, 1)  == 'd' %}
    <img src="//telegram.org/favicon.ico?3" alt="Telegram"/>
    {% endif %}
    {{ account | raw }}</h1>

<h2 class="signup-h2">Связать с существующим аккаунтом Juick</h2>
<form action="/signup" method="post">
    <input type="hidden" name="action" value="link"/>
    <input type="hidden" name="type" value="{{ type }}"/>
    <input type="hidden" name="hash" value="{{ hash }}"/>
    {% if visitor.getUID() > 0 %}
    <input type="submit" value="Связать с этим аккаунтом"/>
    {% else %}
    <p>Имя пользователя: <input type="text" name="username"/></p>
    <p>Пароль: <input type="password" name="password" autocomplete="current-password" /></p>
    <p><input type="submit" value="    OK    "/></p>
    {% endif %}
</form>

{% if type != "xmpp" %}
<hr class="signup-hr"/>

<h2 class="signup-h2">Создать новый аккаунт Juick</h2>
<form action="/signup" method="post">
    <input type="hidden" name="action" value="new"/>
    <input type="hidden" name="type" value="{{ type }}"/>
    <input type="hidden" name="hash" value="{{ hash }}"/>
    <p>Имя пользователя: <input type="text" name="username" id="username" autocomplete="username" /><br/><i>(От 2-х до 16-и латинских символов
        и/или цифр, дефис)</i></p>
    <p>Пароль: <input type="password" name="password" autocomplete="new-password"/><br/><i>(от 6-и до 32-х символов)</i></p>
    <p><input type="submit" value="    OK    "/></p>
</form>
{% endif %}
{% endblock %}