Pack of changes (auth and requests)

This commit is contained in:
Anton Kamalov
2024-10-22 21:48:18 +03:00
parent d1f513e106
commit c5bd8c03e4
10 changed files with 101 additions and 64 deletions

View File

@@ -2,12 +2,12 @@
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Hello World</title>
<title>Заготовки на складе</title>
</head>
<body>
<!-- Input -->
<h1>Hello World</h1>
{% if status %}
<!-- Input -->
<h1>Выберите материал</h1>
<form action="" method="post">
<select name="material">
{% for item in materials %}
@@ -18,14 +18,15 @@
</form>
{% else %}
<!-- Output -->
{% if result_table %}
<h1>Заготовки на складе</h1>
<table>
<tr>
{% for item in result_table[0] %}
<th>{{ item }}</th>
{% endfor %}
<th>Материал</th>
<th>Вес</th>
<th>Цена</th>
<th>Количество</th>
</tr>
{% for item in result_table[1] %}
{% for item in items %}
<tr>
<td>{{ item['material'] }}</td>
<td>{{ item['weight'] }}</td>
@@ -35,7 +36,6 @@
{% endfor %}
</table>
{% endif %}
{% endif %}
</body>
</html>