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:
@ -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 %}
|
Reference in New Issue
Block a user