29 lines
844 B
HTML
29 lines
844 B
HTML
{% extends "webshop/base.html" %}
|
|
{% block section_title %}Currencies in CHF{% endblock %}
|
|
{% block content %}
|
|
<h4> Currency List: </h4>
|
|
{% if ordered_currency_list %}
|
|
<table>
|
|
<tr>
|
|
<th scope="col">DATE</th>
|
|
<th scope="col">NAME</th>
|
|
<th scope="col">RATE</th>
|
|
</tr>
|
|
{% for currency in ordered_currency_list %}
|
|
<tr>
|
|
<td scope="col">{{ currency.date }}</td>
|
|
<td scope="col">{{ currency.name }}</td>
|
|
<td scope="col">{{ currency.exchange_rate_to_chf }}</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</table>
|
|
<p> {{ message }} </p>
|
|
{% else %}
|
|
<br>
|
|
<p class="alert">
|
|
currency_list missing.
|
|
</p>
|
|
{% endif %}
|
|
</div>
|
|
{% endblock %}
|