18 lines
622 B
Django/Jinja
18 lines
622 B
Django/Jinja
{% extends 'base.html.j2' %}
|
|
{% block title %}Вход — админка{% endblock %}
|
|
{% block body %}
|
|
<main class='login'>
|
|
<h1>Вход в админку</h1>
|
|
{% if error %}<p class='error' role='alert'>{{ error }}</p>{% endif %}
|
|
<form method='post' action='/admin/login'>
|
|
<label>Логин
|
|
<input type='text' name='login' value='{{ login }}' autocomplete='username' required autofocus>
|
|
</label>
|
|
<label>Пароль
|
|
<input type='password' name='password' autocomplete='current-password' required>
|
|
</label>
|
|
<button type='submit'>Войти</button>
|
|
</form>
|
|
</main>
|
|
{% endblock %}
|