Files
surikov/mirzaev/surikovlib/system/views/auth.html
Arsen Mirzaev Tatyano-Muradovich ab752bf34f Инициализация
2022-03-06 05:21:24 +10:00

39 lines
1.4 KiB
HTML

<section id="authentication">
<link href="/css/auth.css" rel="stylesheet">
{% if account is not empty %}
<h3>Аккаунт</h3>
<div>
<p><b>Почта:</b> <span>{{ account.email }}</span></p>
<a class="exit" type="button" href='/account/deauthentication'>Выход</a>
</div>
{% else %}
<h3>Аутентификация</h3>
<form method="POST" accept-charset="UTF-8">
<input type="text" name="email" placeholder="Почта">
<input type="password" name="password" placeholder="Пароль">
<div class="submit">
<label class="button unselectable fas fa-unlock" for="remember"
onclick="return remember_switch(this);"></label>
<input type="checkbox" name="remember" value="1">
<input type="submit" value="Войти" onclick="return authentication(this.parentElement.parentElement);">
</div>
<input type="submit" class="registration" value="Зарегистрироваться"
onclick="return registration(this.parentElement);">
{% if errors is not empty %}
{% if errors.account is not empty %}
<ul class="errors">
{% for error in errors.account %}
<li>{{ error }}</li>
{% endfor %}
</ul>
{% endif %}
{% endif %}
</form>
{% endif %}
<script type="text/javascript" src="/js/auth.js" defer></script>
</section>