2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-08-14 15:41:10 +00:00

VIews / forms / etc

This commit is contained in:
Oliver Walters
2020-09-18 21:49:56 +10:00
parent 1a90106bac
commit ff7570aea4
5 changed files with 117 additions and 4 deletions

View File

@@ -21,8 +21,19 @@
{% block js_ready %}
{{ block.super }}
function reloadTable() {
$("#price-break-table").bootstrapTable("refresh");
}
$('#new-price-break').click(function() {
// TODO
})
launchModalForm("{% url 'sale-price-break-create' %}",
{
success: reloadTable,
data: {
part: {{ part.id }},
}
}
);
});
{% endblock %}