2
0
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:
Oliver Walters
2019-05-14 22:30:24 +10:00
parent a96cd2240c
commit dc3abec899
5 changed files with 76 additions and 51 deletions

View File

@@ -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;
});