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

71 lines
2.1 KiB
HTML
Raw Normal View History

2023-02-01 20:00:08 +01:00
<!DOCTYPE HTML>
<html>
<head>
<title>Admin</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
<a href="/displayCategory?categoryId=1">
<img id="mężczyzna" src= {{ url_for('static', filename='images/mężczyzna.png') }} />
</a>
<a href="/displayCategory?categoryId=2">
<img id="kobieta" src= {{ url_for('static', filename='images/kobieta.png') }} />
</a>
<a href="/displayCategory?categoryId=3">
<img id="akcesoria" src= {{ url_for('static', filename='images/akcesoria.png') }} />
</a>
<a href="/displayCategory?categoryId=4">
<img id="biżuteria" src= {{ url_for('static', filename='images/biżuteria.png') }} />
</a>
<a href="/displayCategory?categoryId=5">
<img id="buty" src= {{ url_for('static', filename='images/buty.png') }} />
</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>