wezm.net/v2/templates/shortcodes/select_currency.html

11 lines
380 B
HTML
Raw Normal View History

2024-07-15 11:03:52 +00:00
{% 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>