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

Add ability to make variant from template

This commit is contained in:
Oliver Walters
2019-05-26 16:00:27 +10:00
parent 91a5a7f051
commit 8715e29c31
4 changed files with 94 additions and 1 deletions

View File

@@ -0,0 +1,12 @@
{% extends "modal_form.html" %}
{% block pre_form_content %}
{{ block.super }}
<div class='alert alert-info alert-block'>
<b>Create new part variant</b><br>
Create a new variant of template <i>'{{ part.full_name }}'</i>.
</div>
{% endblock %}

View File

@@ -60,4 +60,13 @@
sortable: true,
});
$('#new-variant').click(function() {
launchModalForm(
"{% url 'make-part-variant' part.id %}",
{
follow: true,
}
);
});
{% endblock %}