Временное оформление карточек заготовок

This commit is contained in:
2024-11-21 17:54:51 +03:00
parent bf8020afc8
commit a86de70f05
2 changed files with 64 additions and 13 deletions

View File

@@ -7,19 +7,28 @@
<link href="/static/css/main.css" type="text/css" rel="stylesheet">
</head>
<body>
<h1>Новая накладная</h1>
<form action="" method="post">
{% for item in items %}
<div class="card">
<p>{{ item['name'] }}</p>
<p>В наличии {{ item['count'] }}</p>
<input type="number" name="{{ item['id'] }}" value="0" min="0">
</div>
{% endfor %}
<input type="submit" value="Создать накладную">
</form>
<div class="return">
<a href="{{ url_for('index') }}"><button>Главное меню</button></a>
<h1>Заглушка для примера составления накладной</h1>
<div class="container">
<!-- Пример карточки -->
<div class="card">
<img src="https://via.placeholder.com/250x150" alt="Фото товара">
<h3>Название товара 1</h3>
<p class="price">Цена: 500 руб.</p>
<p class="quantity">Количество: 10 шт.</p>
</div>
<div class="card">
<img src="https://via.placeholder.com/250x150" alt="Фото товара">
<h3>Название товара 2</h3>
<p class="price">Цена: 1200 руб.</p>
<p class="quantity">Количество: 5 шт.</p>
</div>
<div class="card">
<img src="https://via.placeholder.com/250x150" alt="Фото товара">
<h3>Название товара 3</h3>
<p class="price">Цена: 800 руб.</p>
<p class="quantity">Количество: 7 шт.</p>
</div>
</div>
<a href="{{ url_for('index') }}"><button>На главную страницу</button></a>
</body>
</html>