Prześlij pliki do 'templates'

This commit is contained in:
Sławomir Łopata 2023-02-16 23:53:55 +01:00
parent 06cc3604e5
commit 06b6861025
5 changed files with 86 additions and 15 deletions

View File

@ -29,6 +29,10 @@
<a href="/displayCategory?categoryId=5">
<img id="buty" src= {{ url_for('static', filename='images/buty.png') }} />
</a>
<a href="/show">
<img id="koment" src= {{ url_for('static', filename='images/koment.png') }} />
</a>
<div id="kart">
<a class="link" href="/koszyk">

View File

@ -29,6 +29,10 @@
<a href="/displayCategory?categoryId=5">
<img id="buty" src= {{ url_for('static', filename='images/buty.png') }} />
</a>
<a href="/show">
<img id="koment" src= {{ url_for('static', filename='images/koment.png') }} />
</a>
<div id="kart">
<a class="link" href="/koszyk">

View File

@ -1,7 +1,7 @@
<!DOCTYPE HTML>
<html>
<head>
<title>Admin</title>
<title>dodaj produkt</title>
<link rel="stylesheet" href={{ url_for('static', filename='css/home.css') }} />
<link rel="stylesheet" href={{ url_for('static', filename='css/topStyle.css') }} />
</head>
@ -11,24 +11,16 @@
<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 href="/add">
<img id="add" src= {{ url_for('static', filename='images/dodaj.png') }} />
</a>
<a href="/displayCategory?categoryId=2">
<img id="kobieta" src= {{ url_for('static', filename='images/kobieta.png') }} />
<a href="/update">
<img id="update" src= {{ url_for('static', filename='images/update.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 href="/delete">
<img id="delete" src= {{ url_for('static', filename='images/usuń.png') }} />
</a>
<div id="kart">

View File

@ -24,6 +24,10 @@
<a href="/displayCategory?categoryId=5">
<img id="buty" src= {{ url_for('static', filename='images/buty.png') }} />
</a>
<a href="/show">
<img id="koment" src= {{ url_for('static', filename='images/koment.png') }} />
</a>
<div id="kart">
<a class="link" href="/koszyk">

67
templates/delete.html Normal file
View File

@ -0,0 +1,67 @@
<!DOCTYPE HTML>
<html>
<head>
<title>usuń produkt</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>Usuń Produkt:</h2>
<table>
{% for i in range(6) %}
<tr>
{% for row in data %}
<td>
<a href="/deleteItem?productId={{row[0]}}">
{% if i == 4 %}
<img src={{ url_for('static', filename='uploads/' + row[i]) }} id="itemImage" />
<input type="submit" value="Usuń produkt">
{% else %}
{{row[i]}}
{% endif %}
</a>
</td>
{% endfor %}
</tr>
{% endfor %}
</table>
</body>
</html>