Отдельная страница для вывода результатов

This commit is contained in:
Anton Kamalov
2024-10-23 23:11:01 +03:00
parent ac7541ce29
commit a7ee179dc4
3 changed files with 29 additions and 28 deletions

View File

@@ -0,0 +1,26 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Заготовки на складе</title>
</head>
<body>
<h1>Заготовки на складе</h1>
<!-- Output -->
<table>
<tr>
{% for category in categories %}
<th>{{ category }}</th>
{% endfor %}
</tr>
{% for item in items %}
<tr>
<td>{{ item['material'] }}</td>
<td>{{ item['weight'] }}</td>
<td>{{ item['price'] }}</td>
<td>{{ item['count'] }}</td>
</tr>
{% endfor %}
</table>
</body>
</html>