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:
12
InvenTree/part/templates/part/variant_part.html
Normal file
12
InvenTree/part/templates/part/variant_part.html
Normal 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 %}
|
@@ -60,4 +60,13 @@
|
||||
sortable: true,
|
||||
});
|
||||
|
||||
$('#new-variant').click(function() {
|
||||
launchModalForm(
|
||||
"{% url 'make-part-variant' part.id %}",
|
||||
{
|
||||
follow: true,
|
||||
}
|
||||
);
|
||||
});
|
||||
|
||||
{% endblock %}
|
Reference in New Issue
Block a user