Pack of changes (auth and requests)
This commit is contained in:
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user