56 lines
1.6 KiB
HTML
56 lines
1.6 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>
|
|
<form>
|
|
<input id="searchBox" type="text" name="searchQuery">
|
|
<input id="searchButton" type="submit" value="Search">
|
|
</form>
|
|
|
|
<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/orders">Twoje zamówienie</a>
|
|
<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>
|