2017-12-19 21:28:05 +01:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<head>
|
|
|
|
<link rel="stylesheet" href="{{ STATIC_URL }}/static/admin/css/base.css" />
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<div id="content" class="flex">
|
2017-12-19 22:33:00 +01:00
|
|
|
<h1>Currencies in CHF</h1>
|
2017-12-19 21:28:05 +01:00
|
|
|
{% if currency_list %}
|
2017-12-29 17:02:33 +01:00
|
|
|
<table>
|
|
|
|
<tr>
|
|
|
|
<th scope="col">DATE</th>
|
|
|
|
{% for currency in currency_list %}
|
|
|
|
<th scope="col">{{ currency.name }}</th>
|
|
|
|
{% endfor %}
|
|
|
|
</tr>
|
2017-12-29 19:26:01 +01:00
|
|
|
<tr>
|
|
|
|
<td>{{ date }}</td>
|
|
|
|
{% for currency in currency_list %}
|
|
|
|
<td>{{ currency.exchange_rate_to_chf }}</td>
|
|
|
|
{% endfor %}
|
|
|
|
</tr>
|
2017-12-29 17:02:33 +01:00
|
|
|
</table>
|
|
|
|
<br>
|
2017-12-29 19:26:01 +01:00
|
|
|
<p> {{ message }} </p>
|
2017-12-29 17:02:33 +01:00
|
|
|
<br>
|
2017-12-19 21:28:05 +01:00
|
|
|
<ul>
|
|
|
|
{% for currency in currency_list %}
|
2017-12-27 18:17:14 +01:00
|
|
|
<li>
|
|
|
|
{{ currency.date }} :
|
|
|
|
{{ currency.name }} :
|
|
|
|
{{ currency.exchange_rate_to_chf }}
|
|
|
|
</li>
|
2017-12-19 21:28:05 +01:00
|
|
|
{% endfor %}
|
|
|
|
</ul>
|
|
|
|
{% else %}
|
2017-12-27 18:17:14 +01:00
|
|
|
<p class="alert">
|
|
|
|
Something whent wrong, no currencies are available.
|
|
|
|
</p>
|
2017-12-19 21:28:05 +01:00
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
</body>
|
|
|
|
</html>
|