74 lines
1.8 KiB
HTML
74 lines
1.8 KiB
HTML
<!DOCTYPE HTML>
|
|
<html>
|
|
<head>
|
|
<title>Opis produktu</title>
|
|
<link rel="stylesheet" href={{url_for('static', filename='css/productDescription.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>
|
|
<div id="display">
|
|
<div id="productName">
|
|
<h1>{{data[1]}}</h1>
|
|
</div>
|
|
<div>
|
|
<img src={{url_for('static', filename='uploads/'+data[4]) }} id="productImage"/>
|
|
</div>
|
|
|
|
<div id="productDescription">
|
|
<h2>Detale</h2>
|
|
<table id="descriptionTable">
|
|
<tr>
|
|
<td>Nazwa</td>
|
|
<td>{{data[1]}}</td>
|
|
</tr>
|
|
<tr>
|
|
<td>Cena</td>
|
|
<td>${{data[2]}}</td>
|
|
</tr>
|
|
<tr>
|
|
<td>Zbiór</td>
|
|
<td>{{data[5]}}</td>
|
|
</tr>
|
|
</table>
|
|
<h2>Opis</h2>
|
|
<p>{{data[3]}}</p>
|
|
</div>
|
|
<div id="addTokoszyk">
|
|
<a href="/addToCart?productId={{request.args.get('productId')}}">Dodaj do koszyka</a>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html>
|
|
|