30 lines
1.3 KiB
HTML
30 lines
1.3 KiB
HTML
{% extends "base.html" %}
|
|
{% block title %}Вход администратора — DLD Monitor{% endblock %}
|
|
{% block content %}
|
|
|
|
<div class="row justify-content-center">
|
|
<div class="col-md-5">
|
|
<div class="card shadow-sm">
|
|
<div class="card-body">
|
|
<h5 class="mb-3">🔒 Режим администратора</h5>
|
|
<p class="text-muted small">
|
|
Введите PIN, чтобы разблокировать удаление проектов, конкурентов и
|
|
редактирование/удаление сотрудников. Сессия — на 8 часов.
|
|
</p>
|
|
{% if error %}<div class="alert alert-danger py-2">{{ error }}</div>{% endif %}
|
|
<form method="post" action="{{ url_path('/admin/login') }}">
|
|
<input type="hidden" name="next" value="{{ next }}">
|
|
<div class="mb-3">
|
|
<input type="password" name="pin" required autofocus class="form-control"
|
|
placeholder="PIN администратора">
|
|
</div>
|
|
<button class="btn btn-primary w-100">Войти</button>
|
|
</form>
|
|
<a href="{{ url_path(next) }}" class="btn btn-link btn-sm w-100 mt-2">← Отмена</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
{% endblock %}
|