Инициализация
This commit is contained in:
38
mirzaev/surikovlib/system/views/auth.html
Normal file
38
mirzaev/surikovlib/system/views/auth.html
Normal file
@@ -0,0 +1,38 @@
|
||||
<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>
|
Reference in New Issue
Block a user