76 lines
2.0 KiB
HTML
76 lines
2.0 KiB
HTML
<!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') }} />
|
|
<script src={{ url_for('static', filename='js/checkprice.js') }}></script>
|
|
</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>
|
|
|
|
<form action="/updateItem" method="POST" onsubmit="return validate()">
|
|
<p>Nazwa przedmiotu: <input type="text" name="name"></p>
|
|
<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>
|
|
<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> |