60 lines
1.9 KiB
HTML
60 lines
1.9 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<title>{{ header }}</title>
|
|
<link
|
|
href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css"
|
|
rel="stylesheet"
|
|
/>
|
|
<link
|
|
href="https://getbootstrap.com/docs/5.3/assets/css/docs.css"
|
|
rel="stylesheet"
|
|
/>
|
|
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js"></script>
|
|
</head>
|
|
<body>
|
|
<div class="row flex-nowrap justify-content-between">
|
|
<div class="col-1 pt-1"></div>
|
|
<div class="col-10 text-center">
|
|
<label class="display-5 fw-bold">{{ header }}</label>
|
|
</div>
|
|
<div class="col-1 d-flex justify-content-end align-items-center">
|
|
<a href="{{ url_for('logout') }}"><button class="btn btn-danger">Выход</button></a>
|
|
</div>
|
|
</div>
|
|
<!-- Output -->
|
|
{% if items %}
|
|
<div class="row flex-nowrap justify-content-between">
|
|
<div class="col-3"></div>
|
|
<div class="col-6">
|
|
<table class="table">
|
|
<thead class="table-dark">
|
|
<tr>
|
|
{% for key in items[0].keys() %}
|
|
<th>{{ key }}</th>
|
|
{% endfor %}
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for item in items %}
|
|
<tr>
|
|
{% for value in item.values() %}
|
|
<td>{{ value }}</td>
|
|
{% endfor %}
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<div class="col-3"></div>
|
|
</div>
|
|
|
|
|
|
{% else %}
|
|
<p>Информации не найдено</p>
|
|
{% endif %}
|
|
<div class="return">
|
|
<a href="{{ link }}"><button>Вернуться в меню выбора</button></a>
|
|
</div></body>
|
|
</html> |