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

Add modal form for creating a new currency

This commit is contained in:
Oliver Walters
2019-09-07 20:06:04 +10:00
parent 67ea0fa887
commit 31562826f4
5 changed files with 73 additions and 2 deletions

View File

@ -8,7 +8,11 @@
<h4>Currencies</h4>
<table class='table table-striped table-condensed' id='currency-table'/>
<div id='currency-buttons'>
<button class='btn btn-success' id='new-currency'>New Currency</button>
</div>
<table class='table table-striped table-condensed' id='currency-table' data-toolbar='#currency-buttons'>
</table>
{% endblock %}
@ -58,5 +62,12 @@
]
});
$("#new-currency").click(function() {
launchModalForm("{% url 'currency-create' %}", {
success: function() {
$("#currency-table").bootstrapTable('refresh');
},
});
});
{% endblock %}