43 lines
1.2 KiB
HTML
43 lines
1.2 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>
|
|
<p> {{ message }} </p>
|
|
<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>
|