2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-18 13:05:42 +00:00

Added exchange rates form

This commit is contained in:
eeintech
2021-05-20 09:49:56 -04:00
parent 6d5b2d3227
commit bed6a7e49c
6 changed files with 125 additions and 43 deletions

View File

@ -26,18 +26,15 @@
</div>
</div>
<table class='table table-striped table-condensed' id='exchange-rates'>
</table>
<form action="{% url 'refresh-exchange-rates' %}" method="post">
<form action="{% url 'settings-currencies' %}" method="post">
{% csrf_token %}
<button type="submit" class='btn btn-primary'>{% trans "Refresh Exchange Rates" %}</button>
{% load crispy_forms_tags %}
{% crispy form %}
{% if exchange_backend == 'fixer.io' %}
<button type="submit" class='btn btn-primary'>{% trans "Refresh Exchange Rates" %}</button>
{% else %}
<button type="submit" class='btn btn-primary'>{% trans "Update Exchange Rates" %}</button>
{% endif %}
</form>
{% endblock %}
{% block js_ready %}
{{ block.super }}
{% comment %} TODO: Update exchange-rates table! {% endcomment %}
{% comment %} Or do it using context instead of JS? {% endcomment %}
{% endblock %}