Fix in Requests + in Report part
This commit is contained in:
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>
|
||||
Reference in New Issue
Block a user