mirror of https://gitlab.com/bashrc2/epicyon
Put currencies into a sorted list
parent
a2b2154312
commit
7360ebaccd
|
@ -395,10 +395,13 @@ def htmlNewPost(cssCache: {}, mediaInstance: bool, translate: {},
|
||||||
currencies = getCurrencies()
|
currencies = getCurrencies()
|
||||||
extraFields += ' <select id="themeDropdown" ' + \
|
extraFields += ' <select id="themeDropdown" ' + \
|
||||||
'name="itemCurrency" class="theme">'
|
'name="itemCurrency" class="theme">'
|
||||||
|
currencyList = []
|
||||||
for symbol, currName in currencies.items():
|
for symbol, currName in currencies.items():
|
||||||
|
currencyList.append(currName + ' ' + symbol)
|
||||||
|
currencyList.sort()
|
||||||
|
for currName in currencyList:
|
||||||
extraFields += ' <option value="' + \
|
extraFields += ' <option value="' + \
|
||||||
currName + '">' + \
|
currName + '">' + currName + '</option>'
|
||||||
currName + ' ' + symbol + '</option>'
|
|
||||||
|
|
||||||
extraFields += '</div>\n'
|
extraFields += '</div>\n'
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue