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

63 lines
1.8 KiB
HTML
Raw Normal View History

2023-02-01 20:00:08 +01:00
<!DOCTYPE HTML>
<html>
<head>
2023-02-16 23:53:55 +01:00
<title>dodaj produkt</title>
2023-02-04 00:24:11 +01:00
<link rel="stylesheet" href={{ url_for('static', filename='css/home.css') }} />
<link rel="stylesheet" href={{ url_for('static', filename='css/topStyle.css') }} />
2023-02-01 20:00:08 +01:00
</head>
<body>
2023-02-04 00:24:11 +01:00
<div id="title">
<a href="/">
<img id="logo" src= {{ url_for('static', filename='images/logo.png') }} />
</a>
2023-02-04 04:08:54 +01:00
2023-02-16 23:53:55 +01:00
<a href="/add">
<img id="add" src= {{ url_for('static', filename='images/dodaj.png') }} />
2023-02-04 04:08:54 +01:00
</a>
2023-02-16 23:53:55 +01:00
<a href="/update">
<img id="update" src= {{ url_for('static', filename='images/update.png') }} />
2023-02-04 04:08:54 +01:00
</a>
2023-02-16 23:53:55 +01:00
<a href="/delete">
<img id="delete" src= {{ url_for('static', filename='images/usuń.png') }} />
2023-02-04 04:08:54 +01:00
</a>
2023-02-04 00:24:11 +01:00
<div id="kart">
<a class="link" href="/koszyk">
<img src={{url_for('static', filename='images/koszyk_zakupowy.png')}} id="koszykIcon" />
{{noOfItems}}
</a>
</div>
{% if not loggedIn %}
<div id="signInButton">
<a class="link" href="/loginForm">Zaloguj się</a>
</div>
{% else %}
<div class="dropdown">
<button class="dropbtn">Cześć, <br>{{firstName}}</button>
<div class="dropdown-content">
<a href="/account/profile">Twój Profil</a>
<hr>
<a href="/logout">Wyloguj się</a>
</div>
</div>
{% endif %}
</div>
2023-02-01 20:00:08 +01:00
<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>