2018-01-14 13:44:11 +01:00
|
|
|
{% extends "webshop/base.html" %}
|
|
|
|
{% block section_title %}Currencies in CHF{% endblock %}
|
|
|
|
{% block content %}
|
2018-02-28 21:05:27 +01:00
|
|
|
<h4> Currency List: </h4>
|
|
|
|
{% if ordered_currency_list %}
|
2018-01-10 00:58:34 +01:00
|
|
|
<table>
|
2017-12-29 17:02:33 +01:00
|
|
|
<tr>
|
2018-01-10 22:43:22 +01:00
|
|
|
<th scope="col">DATE</th>
|
2018-02-28 21:05:27 +01:00
|
|
|
<th scope="col">NAME</th>
|
2018-01-10 22:43:22 +01:00
|
|
|
<th scope="col">RATE</th>
|
2018-01-11 19:21:13 +01:00
|
|
|
</tr>
|
2018-02-28 21:05:27 +01:00
|
|
|
{% for currency in ordered_currency_list %}
|
2018-01-11 19:21:13 +01:00
|
|
|
<tr>
|
2018-02-28 21:05:27 +01:00
|
|
|
<td scope="col">{{ currency.date }}</td>
|
|
|
|
<td scope="col">{{ currency.name }}</td>
|
2018-01-10 22:43:22 +01:00
|
|
|
<td scope="col">{{ currency.exchange_rate_to_chf }}</td>
|
2018-01-11 19:21:13 +01:00
|
|
|
</tr>
|
2017-12-29 17:02:33 +01:00
|
|
|
{% endfor %}
|
2018-01-10 00:58:34 +01:00
|
|
|
</table>
|
2018-02-28 21:05:27 +01:00
|
|
|
<p> {{ message }} </p>
|
2018-01-10 00:58:34 +01:00
|
|
|
{% else %}
|
2018-02-28 21:05:27 +01:00
|
|
|
<br>
|
2018-01-10 00:58:34 +01:00
|
|
|
<p class="alert">
|
2018-02-28 21:05:27 +01:00
|
|
|
currency_list missing.
|
2018-01-10 00:58:34 +01:00
|
|
|
</p>
|
|
|
|
{% endif %}
|
2017-12-19 21:28:05 +01:00
|
|
|
</div>
|
2018-01-14 13:44:11 +01:00
|
|
|
{% endblock %}
|