mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Visual improvements for "currency" page
This commit is contained in:
parent
c31a62cc02
commit
2abcb114a8
InvenTree/templates
@ -13,29 +13,31 @@
|
|||||||
<table class='table table-striped table-condensed'>
|
<table class='table table-striped table-condensed'>
|
||||||
<tbody>
|
<tbody>
|
||||||
{% include "InvenTree/settings/setting.html" with key="INVENTREE_DEFAULT_CURRENCY" icon="fa-globe" %}
|
{% include "InvenTree/settings/setting.html" with key="INVENTREE_DEFAULT_CURRENCY" icon="fa-globe" %}
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
|
|
||||||
<table class='table table-striped table-condensed'>
|
|
||||||
<tbody>
|
|
||||||
<tr>
|
<tr>
|
||||||
|
<td></td>
|
||||||
<th>{% trans "Base Currency" %}</th>
|
<th>{% trans "Base Currency" %}</th>
|
||||||
<th>{{ base_currency }}</th>
|
<th>{{ base_currency }}</th>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th colspan='2'>{% trans "Exchange Rates" %}</th>
|
<td></td>
|
||||||
|
<th colspan='4'>{% trans "Exchange Rates" %}</th>
|
||||||
</tr>
|
</tr>
|
||||||
{% for rate in rates %}
|
{% for rate in rates %}
|
||||||
<tr>
|
<tr>
|
||||||
<td>{{ rate.currency }}</td>
|
<td></td>
|
||||||
<td>{{ rate.value }}</td>
|
<td>{{ rate.value }}</td>
|
||||||
|
<td>{{ rate.currency }}</td>
|
||||||
|
<td></td>
|
||||||
|
<td></td>
|
||||||
</tr>
|
</tr>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
<tr>
|
<tr>
|
||||||
|
<th></th>
|
||||||
<th>
|
<th>
|
||||||
{% trans "Last Update" %}
|
{% trans "Last Update" %}
|
||||||
</th>
|
</th>
|
||||||
<td>
|
<td colspan="3">
|
||||||
{% if rates_updated %}
|
{% if rates_updated %}
|
||||||
{{ rates_updated }}
|
{{ rates_updated }}
|
||||||
{% else %}
|
{% else %}
|
||||||
@ -44,7 +46,7 @@
|
|||||||
<form action='{% url "settings-currencies-refresh" %}' method='post'>
|
<form action='{% url "settings-currencies-refresh" %}' method='post'>
|
||||||
<div id='refresh-rates-form'>
|
<div id='refresh-rates-form'>
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
<button type='submit' id='update-rates' class='btn btn-outline-secondary float-right'>{% trans "Update Now" %}</button>
|
<button type='submit' id='update-rates' class='btn btn-primary float-right'>{% trans "Update Now" %}</button>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</td>
|
</td>
|
||||||
|
@ -1,7 +1,13 @@
|
|||||||
<div class='panel panel-hidden' id='panel-{% block label %}name{% endblock %}'>
|
<div class='panel panel-hidden' id='panel-{% block label %}name{% endblock %}'>
|
||||||
{% block panel_heading %}
|
{% block panel_heading %}
|
||||||
<div class='panel-heading'>
|
<div class='panel-heading'>
|
||||||
<h4>{% block heading %}HEADING{% endblock %}</h4>
|
<div class='d-flex flex-wrap'>
|
||||||
|
<h4>{% block heading %}HEADING{% endblock %}</h4>
|
||||||
|
</div>
|
||||||
|
<div class='btn-group' role='group'>
|
||||||
|
{% block actions %}
|
||||||
|
{% endblock %}
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
{% block panel_content %}
|
{% block panel_content %}
|
||||||
|
Loading…
Reference in New Issue
Block a user