Added a button to update exchange rates via web gui.

This commit is contained in:
Jan Böhmer 2020-06-07 22:38:10 +02:00
parent ff7c1cddc7
commit af42c3cca0
11 changed files with 1137 additions and 909 deletions

View file

@ -18,6 +18,10 @@
{% endif %}
{{ form_row(form.exchange_rate) }}
{% if form.update_exchange_rate is defined %}
{{ form_row(form.update_exchange_rate, {attr: {class: 'btn-link'}}) }}
{% endif %}
{% if entity.inverseExchangeRate %}
<span class="form-text text-muted offset-3 col-9">
{{ '1'|format_currency(default_currency) }} = {{ entity.inverseExchangeRate.tofloat | format_currency(entity.isoCode, {fraction_digit: 5}) }}