web_AI-5/django/didgeridoo/currencies/templates/currencies/index.html

42 lines
1.1 KiB
HTML

<!DOCTYPE html>
<head>
<link rel="stylesheet" href="{{ STATIC_URL }}/static/admin/css/base.css" />
</head>
<body>
<div id="content" class="flex">
<h1>Currencies in CHF</h1>
{% if currency_list %}
<table>
<tr>
<th scope="col">DATE</th>
{% for currency in currency_list %}
<th scope="col">{{ currency.name }}</th>
{% endfor %}
</tr>
<tr>
<td>{{ date }}</td>
{% for currency in currency_list %}
<td>{{ currency.exchange_rate_to_chf }}</td>
{% endfor %}
</tr>
</table>
<br>
<br>
<ul>
{% for currency in currency_list %}
<li>
{{ currency.date }} :
{{ currency.name }} :
{{ currency.exchange_rate_to_chf }}
</li>
{% endfor %}
</ul>
{% else %}
<p class="alert">
Something whent wrong, no currencies are available.
</p>
{% endif %}
</div>
</body>
</html>