71 lines
2.1 KiB
HTML
71 lines
2.1 KiB
HTML
<!DOCTYPE HTML>
|
|
<html>
|
|
<head>
|
|
<title>Admin</title>
|
|
<link rel="stylesheet" href={{ url_for('static', filename='css/home.css') }} />
|
|
<link rel="stylesheet" href={{ url_for('static', filename='css/topStyle.css') }} />
|
|
</head>
|
|
<body>
|
|
<div id="title">
|
|
<a href="/">
|
|
<img id="logo" src= {{ url_for('static', filename='images/logo.png') }} />
|
|
</a>
|
|
|
|
<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>
|
|
|
|
<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>
|
|
<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>
|