CS50_Labs/Lab9/finance/templates/history.html

29 lines
716 B
HTML
Raw Permalink Normal View History

2024-08-09 17:43:54 +00:00
{% extends "layout.html" %}
{% block title %}
History
{% endblock %}
{% block main %}
<table class="table">
<thead>
<tr>
<th class="text-start">Symbol</th>
<th class="text-end">Shares</th>
<th class="text-end">Price</th>
<th class="text-end">Transacted</th>
</tr>
</thead>
<tbody>
{% for row in history %}
<tr>
<td>{{ row.symbol }}</td>
<td>{{ row.shares }}</td>
<td>{{ row.price }}</td>
<td>{{ row.transacted }}</td>
</tr>
{% endfor %}
</tbody>
</table>
{% endblock %}