cs50/gremlin/templates/products.html

26 lines
748 B
HTML

{% extends "layout.html" %}
{% block body %}
<h1>Products</h1>
<a href="/">Return</a>
<table class="table table-dark table-striped table-hover">
<thead>
<tr>
<th scope=" col">Partnumber</th>
<th scope="col">Option</th>
<th scope="col">Description</th>
<th scope="col">Price</th>
</tr>
</thead>
<tbody class="table-group-divider">
{% for product in products %}
<tr>
<th scope="row">{{ product['Partnumber'] }}</th>
<td>{{ product['Option'] }}</td>
<td>{{ product['Description'] }}</td>
<td>{{ product['Current Month Price(EUR)'] }}</td>
</tr>
{% endfor %}
</tbody>
</table>
{% endblock %}