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

42 lines
1.1 KiB
HTML
Raw Normal View History

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>
<tr>
<td>{{ date }}</td>
{% for currency in currency_list %}
<td>{{ currency.exchange_rate_to_chf }}</td>
{% endfor %}
</tr>
</table>
<br>
<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>