Prześlij pliki do 'templates'
This commit is contained in:
parent
5b9e4bd2d7
commit
b15d287b55
73
templates/update.html
Normal file
73
templates/update.html
Normal file
@ -0,0 +1,73 @@
|
||||
<!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') }} />
|
||||
</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" enctype="multipart/form-data">
|
||||
<p>Nazwa przedmiotu: <input type="text" name="name"></p>
|
||||
<p>Nowa cena przedmiotu:<input type="number" name="price"></p>
|
||||
<input type="submit" value="Zmień cenę">
|
||||
</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>
|
Loading…
Reference in New Issue
Block a user