Fix in Requests + in Report part
This commit is contained in:
15
App/Report/templates/OK.html
Normal file
15
App/Report/templates/OK.html
Normal file
@@ -0,0 +1,15 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>Успех</title>
|
||||
<link href="/static/css/auth.css" type="text/css" rel="stylesheet">
|
||||
<link href="/static/css/main.css" type="text/css" rel="stylesheet">
|
||||
</head>
|
||||
<body>
|
||||
<h1>Успешно!</h1>
|
||||
<p>Отчет успешно добавлен в базу данных!</p>
|
||||
<a href="{{ url_for('index') }}"><button>На главную страницу</button></a>
|
||||
<a href="{{ url_for('report_bp.menu') }}"><button>В меню отчетов</button></a>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,18 +0,0 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>Квартальный отчет</title>
|
||||
<link href="/static/css/main.css" type="text/css" rel="stylesheet">
|
||||
</head>
|
||||
<body>
|
||||
<div class="logout">
|
||||
<a href="{{ url_for('logout') }}"><button>Выход</button></a>
|
||||
</div>
|
||||
<!-- Not implemented -->
|
||||
<h1>Заглушка для квартального отчета</h1>
|
||||
<div class="return">
|
||||
<a href="{{ url_for('index') }}"><button>Главное меню</button></a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
45
App/Report/templates/report_basic.html
Normal file
45
App/Report/templates/report_basic.html
Normal file
@@ -0,0 +1,45 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>{{ title }}</title>
|
||||
<link href="/static/css/main.css" type="text/css" rel="stylesheet">
|
||||
</head>
|
||||
<body>
|
||||
<div class="logout">
|
||||
<a href="{{ url_for('logout') }}"><button>Выход</button></a>
|
||||
</div>
|
||||
<h1>{{ title }}</h1>
|
||||
|
||||
<form action="" method="post">
|
||||
{% for item in items %}
|
||||
<select name="category" required>
|
||||
<option value="{{ item['id'] }}">{{ item['name'] }}</option>
|
||||
</select>
|
||||
{% endfor %}
|
||||
<select name="month" required>
|
||||
<option value="1">Январь</option>
|
||||
<option value="2">Февраль</option>
|
||||
<option value="3">Март</option>
|
||||
<option value="4">Апрель</option>
|
||||
<option value="5">Май</option>
|
||||
<option value="6">Июнь</option>
|
||||
<option value="7">Июль</option>
|
||||
<option value="8">Август</option>
|
||||
<option value="9">Сентябрь</option>
|
||||
<option value="10">Октябрь</option>
|
||||
<option value="11">Ноябрь</option>
|
||||
<option value="12">Декабрь</option>
|
||||
</select>
|
||||
<input type="number" name="year" value="2024" min="1990" max="2100" required>
|
||||
{% if write %}
|
||||
<button type="submit" value="write">Создать</button>
|
||||
{% else %}
|
||||
<button type="submit" value="read">Просмотр</button>
|
||||
{% endif %}
|
||||
</form>
|
||||
<div class="return">
|
||||
<a href="{{ url_for('index') }}"><button>Главное меню</button></a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -10,11 +10,10 @@
|
||||
<a href="{{ url_for('logout') }}"><button>Выход</button></a>
|
||||
</div>
|
||||
<h1>Выберите вариант отчетов</h1>
|
||||
<nav class="menu">
|
||||
{% for point in options %}
|
||||
<a href="{{ url_for(point['url']) }}"><button>{{ point['name'] }}</button></a>
|
||||
{% endfor %}
|
||||
</nav>
|
||||
<div style="text-align: center; margin: 20px 0;">
|
||||
<a href="{{ url_for('report_bp.create') }}"><button>Создать отчет</button></a>
|
||||
<a href="{{ url_for('report_bp.view') }}"><button>Читать отчеты</button></a>
|
||||
</div>
|
||||
<div class="return">
|
||||
<a href="{{ url_for('index') }}"><button>Главное меню</button></a>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user