Projekt-Pracownia_Programow.../templates/add.html

23 lines
631 B
HTML
Raw Normal View History

2023-02-01 20:00:08 +01:00
<!DOCTYPE HTML>
<html>
<head>
<title>Admin</title>
</head>
<body>
<h2>Dodaj Produkt</h2>
<form action="/addItem" method="POST" enctype="multipart/form-data">
Nazwa: <input type="text" name="name"><br>
Cena: <input type="text" name="price"><br>
Description: <textarea name="description" rows=3 cols="40"></textarea><br>
Zdiecie: <input type="file" name="image"><br>
Zbiór: <input type="text" name="stock"><br>
Kategorie: <select name="category">
{% for row in categories %}
<option value="{{row[0]}}">{{row[1]}}</option>
{% endfor %}
</select><br>
<input type="submit">
</form>
</body>
</html>