wezm.net/v2/templates/shortcodes/select_currency.html
2024-07-16 10:05:07 +10:00

10 lines
380 B
HTML

{% set forex = load_data(path=path) %}
{% set currencies = [ "USD", "AUD", "GBP", "EUR", "RUB", "CAD", "INR", "SEK", "BRL", "JPY", "PLN", "KRW", "CHF", "HKD" ] %}
<label>Currency:
<select id="forex">
{% for ccy in currencies | sort %}
{% set rate = forex[ccy] %}
<option value="{{ ccy }}" data-price="{{ rate }}">{{ ccy }}</option>
{% endfor %}
</select>
</label>