2024-01-31 19:37:01 +10:00
|
|
|
|
{% extends "base.j2" %}
|
|
|
|
|
|
|
|
|
|
{% block title %}
|
2024-03-07 16:18:48 +10:00
|
|
|
|
Вход в аккаунт
|
2024-01-31 19:37:01 +10:00
|
|
|
|
{% endblock title %}
|
|
|
|
|
|
|
|
|
|
{% block main %}
|
|
|
|
|
<div class="container ">
|
|
|
|
|
<!-- Modal Body -->
|
|
|
|
|
<!-- if you want to close by clicking outside the modal, delete the last endpoint:data-bs-backdrop and data-bs-keyboard -->
|
|
|
|
|
<div class="modal fade" id="secretCodeModal" tabindex="-1" data-bs-backdrop="static" data-bs-keyboard="false"
|
|
|
|
|
role="dialog" aria-labelledby="modalTitleId" aria-hidden="true">
|
|
|
|
|
<div class="modal-dialog modal-dialog-scrollable modal-dialog-centered modal-lg" role="document">
|
|
|
|
|
<div class="modal-content">
|
|
|
|
|
<form action="" id="secret-code-form">
|
|
|
|
|
<div class="modal-header">
|
|
|
|
|
<h5 class="modal-title" id="modalTitleId">Введите секретный код</h5>
|
|
|
|
|
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="modal-body">
|
|
|
|
|
<div class="mb-3">
|
|
|
|
|
<div class="form-floating mb-3">
|
|
|
|
|
<input type="text" name="code" id="input-secret-code" class="form-control"
|
|
|
|
|
placeholder="Секретный код">
|
|
|
|
|
<label for="input-secret-code">Секретный код</label>
|
|
|
|
|
</div>
|
|
|
|
|
<small id="helpId" class="form-text">
|
|
|
|
|
Вы должны были получить 6-ти значный код в вашем
|
|
|
|
|
аккаунте. Если это не так, обратитесь к администратору, проверьте логи и вывод прокси
|
|
|
|
|
сервера.
|
|
|
|
|
</small>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="modal-footer">
|
|
|
|
|
<button type="submit" class="btn btn-primary">Подтвердить</button>
|
|
|
|
|
</div>
|
|
|
|
|
</form>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="modal fade" id="passwordModal" tabindex="-1" data-bs-backdrop="static" data-bs-keyboard="false"
|
|
|
|
|
role="dialog" aria-labelledby="modalTitleId" aria-hidden="true">
|
|
|
|
|
<div class="modal-dialog modal-dialog-scrollable modal-dialog-centered modal-lg" role="document">
|
|
|
|
|
<div class="modal-content">
|
|
|
|
|
<form action="" id="password-form">
|
|
|
|
|
<div class="modal-header">
|
|
|
|
|
<h5 class="modal-title" id="modalTitleId">Введите пароль</h5>
|
|
|
|
|
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="modal-body">
|
|
|
|
|
<div class="mb-3">
|
|
|
|
|
<div class="form-floating mb-3">
|
|
|
|
|
<input type="text" name="password" id="input-password" class="form-control"
|
|
|
|
|
placeholder="Пароль">
|
|
|
|
|
<label for="input-password">Пароль</label>
|
|
|
|
|
</div>
|
|
|
|
|
<small id="helpId" class="form-text">Введите пароль двухфакторной аутентификации. Если у акаунта его нет, да поможет вам бог.</small>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="modal-footer">
|
|
|
|
|
<button type="submit" class="btn btn-primary">Подтвердить</button>
|
|
|
|
|
</div>
|
|
|
|
|
</form>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<form action="" id="add-session-form">
|
|
|
|
|
|
|
|
|
|
<!-- Telegram Account Info -->
|
|
|
|
|
|
|
|
|
|
<div class="mb-3">
|
|
|
|
|
<label for="" class="form-label">Данные телеграм аккаунта</label>
|
|
|
|
|
<div class="row row-cols-1 row-cols-sm-2">
|
|
|
|
|
<div class="col">
|
|
|
|
|
<div class="form-floating mb-3">
|
|
|
|
|
<input type="text" name="name" id="input-name" class="form-control" placeholder="Имя">
|
|
|
|
|
<label for="input-name">название сессии</label>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="col">
|
|
|
|
|
<div class="form-floating mb-3">
|
|
|
|
|
<input type="phone" name="phone" id="input-phone" class="form-control" placeholder="Phone">
|
|
|
|
|
<label for="input-phone">Номер телефона</label>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<button type="submit" class="btn btn-primary">Отправить код</button>
|
|
|
|
|
</form>
|
|
|
|
|
<hr>
|
2024-02-11 22:22:18 +10:00
|
|
|
|
<form hx-post="/api/sessions" hx-encoding='multipart/form-data' hx-swap="none">
|
|
|
|
|
<label for="open-file-btn" class="form-label">Архив с аккаунтом</label>
|
|
|
|
|
<div class="input-group mb-3">
|
|
|
|
|
<input class="form-control" type="file" name="archive" accept=".zip">
|
|
|
|
|
<button class="btn btn-primary" type="submit">Отправить</button>
|
2024-01-31 19:37:01 +10:00
|
|
|
|
</div>
|
|
|
|
|
</form>
|
|
|
|
|
</div>
|
|
|
|
|
{% endblock main %}
|
|
|
|
|
|
|
|
|
|
{% block scripts %}
|
|
|
|
|
<script src="{{ url_for('static', filename='frontend/add.js') }}"></script>
|
|
|
|
|
{% endblock scripts %}
|