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

29 lines
844 B
HTML
Raw Normal View History

{% 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 %}
<table>
2017-12-29 17:02:33 +01:00
<tr>
<th scope="col">DATE</th>
2018-02-28 21:05:27 +01:00
<th scope="col">NAME</th>
<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>
<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 %}
</table>
2018-02-28 21:05:27 +01:00
<p> {{ message }} </p>
{% else %}
2018-02-28 21:05:27 +01:00
<br>
<p class="alert">
2018-02-28 21:05:27 +01:00
currency_list missing.
</p>
{% endif %}
2017-12-19 21:28:05 +01:00
</div>
{% endblock %}