mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-08-03 17:55:03 +02:00
Added a button to update exchange rates via web gui.
This commit is contained in:
parent
ff7c1cddc7
commit
af42c3cca0
11 changed files with 1137 additions and 909 deletions
|
@ -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}) }}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue