From 2abcb114a8941e4228819a6f57bf4dba88ee0fbd Mon Sep 17 00:00:00 2001 From: Oliver Date: Tue, 2 Nov 2021 11:28:46 +1100 Subject: [PATCH] Visual improvements for "currency" page --- .../InvenTree/settings/currencies.html | 18 ++++++++++-------- InvenTree/templates/panel.html | 8 +++++++- 2 files changed, 17 insertions(+), 9 deletions(-) diff --git a/InvenTree/templates/InvenTree/settings/currencies.html b/InvenTree/templates/InvenTree/settings/currencies.html index ba6e782508..706f836317 100644 --- a/InvenTree/templates/InvenTree/settings/currencies.html +++ b/InvenTree/templates/InvenTree/settings/currencies.html @@ -13,29 +13,31 @@ {% include "InvenTree/settings/setting.html" with key="INVENTREE_DEFAULT_CURRENCY" icon="fa-globe" %} - -
- - + - + + {% for rate in rates %} - + + + + {% endfor %} + - diff --git a/InvenTree/templates/panel.html b/InvenTree/templates/panel.html index 1491991e8c..53c5ca997a 100644 --- a/InvenTree/templates/panel.html +++ b/InvenTree/templates/panel.html @@ -1,7 +1,13 @@
{% block panel_heading %}
-

{% block heading %}HEADING{% endblock %}

+
+

{% block heading %}HEADING{% endblock %}

+
+
+ {% block actions %} + {% endblock %} +
{% endblock %} {% block panel_content %}
{% trans "Base Currency" %} {{ base_currency }}
{% trans "Exchange Rates" %}{% trans "Exchange Rates" %}
{{ rate.currency }} {{ rate.value }}{{ rate.currency }}
{% trans "Last Update" %} + {% if rates_updated %} {{ rates_updated }} {% else %} @@ -44,7 +46,7 @@
{% csrf_token %} - +