Исправления в основном меню и выводе результатов
This commit is contained in:
@@ -13,7 +13,7 @@
|
||||
/>
|
||||
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<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">
|
||||
@@ -25,36 +25,37 @@
|
||||
</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>
|
||||
<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 %}
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for item in items %}
|
||||
<tr>
|
||||
{% for value in item.values() %}
|
||||
<td>{{ value }}</td>
|
||||
{% endfor %}
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div class="col-3"></div>
|
||||
</div>
|
||||
<div class="col-3"></div>
|
||||
</div>
|
||||
|
||||
|
||||
{% else %}
|
||||
<p>Информации не найдено</p>
|
||||
<div class="d-flex justify-content-center gap-2 py-5">
|
||||
<p>Информации не найдено</p>
|
||||
</div>
|
||||
{% endif %}
|
||||
<div class="return">
|
||||
<a href="{{ link }}"><button>Вернуться в меню выбора</button></a>
|
||||
</div></body>
|
||||
<div class="d-flex justify-content-center gap-2">
|
||||
<a href="{{ link }}"><button class="btn btn-primary">Вернуться в меню выбора</button></a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user