61 lines
2.2 KiB
HTML
61 lines
2.2 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en" data-bs-theme="dark">
|
|
<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 class="p-3 m-0 border-0 bd-example m-0 border-0">
|
|
<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 py-5">
|
|
<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 %}
|
|
<div class="d-flex justify-content-center gap-2 py-5">
|
|
<p>Информации не найдено</p>
|
|
</div>
|
|
{% endif %}
|
|
<div class="d-flex justify-content-center gap-2">
|
|
<a href="{{ link }}"><button class="btn btn-secondary">Вернуться в меню выбора</button></a>
|
|
</div>
|
|
</body>
|
|
</html> |