2023-02-16 23:54:52 +01:00
|
|
|
<!DOCTYPE HTML>
|
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<title>Zmień cenę</title>
|
|
|
|
<link rel="stylesheet" href={{url_for('static', filename='css/delete.css')}}>
|
|
|
|
<link rel="stylesheet" href={{ url_for('static', filename='css/topStyle.css') }} />
|
2023-02-20 17:26:59 +01:00
|
|
|
<script src={{ url_for('static', filename='js/checkprice.js') }}></script>
|
2023-02-16 23:54:52 +01:00
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<div id="title">
|
|
|
|
<a href="/">
|
|
|
|
<img id="logo" src= {{ url_for('static', filename='images/logo.png') }} />
|
|
|
|
</a>
|
|
|
|
|
|
|
|
<a href="/add">
|
|
|
|
<img id="add" src= {{ url_for('static', filename='images/dodaj.png') }} />
|
|
|
|
</a>
|
|
|
|
|
|
|
|
<a href="/update">
|
|
|
|
<img id="update" src= {{ url_for('static', filename='images/update.png') }} />
|
|
|
|
</a>
|
|
|
|
|
|
|
|
<a href="/delete">
|
|
|
|
<img id="delete" src= {{ url_for('static', filename='images/usuń.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>Edytuj cenę przedmiotu:</h2>
|
2023-02-20 17:26:59 +01:00
|
|
|
|
|
|
|
<form action="/updateItem" method="POST" onsubmit="return validate()">
|
2023-02-16 23:54:52 +01:00
|
|
|
<p>Nazwa przedmiotu: <input type="text" name="name"></p>
|
2023-02-20 17:26:59 +01:00
|
|
|
<p>Stara cena przedmiotu:<input type="number" name="oldprice" id="OldPrice"></p>
|
|
|
|
<p>Nowa cena przedmiotu:<input type="number" name="price" id="NewPrice"></p>
|
|
|
|
<input type="submit" value="Zapisz">
|
|
|
|
</form>
|
2023-02-16 23:54:52 +01:00
|
|
|
<h2>Tabela z przedmiotami:</h2>
|
|
|
|
<table>
|
|
|
|
{% for i in range(6) %}
|
|
|
|
<tr>
|
|
|
|
{% for row in data %}
|
|
|
|
<td>
|
|
|
|
{% if i == 4 %}
|
|
|
|
<img src={{ url_for('static', filename='uploads/' + row[i]) }} id="itemImage" />
|
|
|
|
{% else %}
|
|
|
|
{{row[i]}}
|
|
|
|
{% endif %}
|
|
|
|
</a>
|
|
|
|
</td>
|
|
|
|
{% endfor %}
|
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</table>
|
|
|
|
|
|
|
|
</body>
|
|
|
|
</html>
|