mirror of
https://github.com/inventree/InvenTree.git
synced 2025-08-07 04:12:11 +00:00
Add a secondary modal in modals.html
This commit is contained in:
@@ -123,9 +123,28 @@
|
||||
{% if location %}
|
||||
location: {{ location.id }}
|
||||
{% endif %}
|
||||
},
|
||||
after_render: function(modal, response) {
|
||||
|
||||
attachSecondaryModal(modal,
|
||||
{
|
||||
'field': 'part',
|
||||
'label': 'New Part',
|
||||
'title': 'Create New Part',
|
||||
}
|
||||
);
|
||||
|
||||
attachSecondaryModal(modal,
|
||||
{
|
||||
'field': 'location',
|
||||
'label': 'New Location',
|
||||
'title': 'Create New Location'
|
||||
}
|
||||
);
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
return false;
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user