mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Add some secondary buttons to the part-create form
This commit is contained in:
parent
be1b458634
commit
97c4e5acbf
@ -89,8 +89,28 @@
|
|||||||
{% if category %}
|
{% if category %}
|
||||||
category: {{ category.id }}
|
category: {{ category.id }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
},
|
||||||
|
after_render: function(modal, response) {
|
||||||
|
attachSecondaryModal(modal,
|
||||||
|
{
|
||||||
|
field: 'category',
|
||||||
|
label: 'New Category',
|
||||||
|
title: 'Create new Part Category',
|
||||||
|
url: "{% url 'category-create' %}",
|
||||||
}
|
}
|
||||||
});
|
);
|
||||||
|
|
||||||
|
attachSecondaryModal(modal,
|
||||||
|
{
|
||||||
|
field: 'default_location',
|
||||||
|
label: 'New Location',
|
||||||
|
title: 'Create new Stock Location',
|
||||||
|
url: "{% url 'stock-location-create' %}",
|
||||||
|
}
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
);
|
||||||
});
|
});
|
||||||
|
|
||||||
{% if category %}
|
{% if category %}
|
||||||
|
Loading…
Reference in New Issue
Block a user