forked from 2percentsilk/python-quickstart
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
55 lines (55 loc) · 1.7 KB
/
Copy pathindex.html
File metadata and controls
55 lines (55 loc) · 1.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bulma@0.9.1/css/bulma.min.css">
<title>Products Viewer</title>
</head>
<body>
<div id="app">
<header>
<div class="container">
<div class="hero is-info is-bold">
<div class="hero-body">
<h1 class="is-size-1">Products</h1>
</div>
</div>
</div>
</header>
<section class="section">
<div class="container">
<div>
<table class="table is-fullwidth is-striped">
<thead>
<tr>
<th>Name</th>
<th>Brand</th>
<th>Price</th>
<th class="has-text-centered">Units in Stock</th>
</tr>
</thead>
<tbody>
{% for product in products %}
<tr>
<td>
{{product.name}}
</td>
<td>
{{product.brand.name}}
</td>
<td>
{{product.price}}
</td>
<td class="has-text-centered">
{{product.stockUnits}}
</td>
</tr>
{% endfor %}
</tbody>
</table>
</div >
</section >
</div >
</body>
</html>