mirror of
https://github.com/inventree/InvenTree.git
synced 2025-05-01 04:56:45 +00:00
Add some more secondary modals
This commit is contained in:
parent
a1d587b7f4
commit
292e29e95e
@ -33,6 +33,14 @@
|
|||||||
supplier: {{ company.id }}
|
supplier: {{ company.id }}
|
||||||
},
|
},
|
||||||
reload: true,
|
reload: true,
|
||||||
|
secondary: [
|
||||||
|
{
|
||||||
|
field: 'part',
|
||||||
|
label: 'New Part',
|
||||||
|
title: 'Create New Part',
|
||||||
|
url: "{% url 'part-create' %}"
|
||||||
|
},
|
||||||
|
]
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -73,8 +73,22 @@
|
|||||||
{% if category %}
|
{% if category %}
|
||||||
data: {
|
data: {
|
||||||
category: {{ category.id }}
|
category: {{ category.id }}
|
||||||
}
|
},
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
secondary: [
|
||||||
|
{
|
||||||
|
field: 'default_location',
|
||||||
|
label: 'New Location',
|
||||||
|
title: 'Create new location',
|
||||||
|
url: "{% url 'stock-location-create' %}",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
field: 'parent',
|
||||||
|
label: 'New Category',
|
||||||
|
title: 'Create new category',
|
||||||
|
url: "{% url 'category-create' %}",
|
||||||
|
},
|
||||||
|
]
|
||||||
});
|
});
|
||||||
})
|
})
|
||||||
|
|
||||||
|
@ -80,7 +80,15 @@
|
|||||||
location: {{ location.id }}
|
location: {{ location.id }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
},
|
},
|
||||||
follow: true
|
follow: true,
|
||||||
|
secondary: [
|
||||||
|
{
|
||||||
|
field: 'parent',
|
||||||
|
label: 'New Location',
|
||||||
|
title: 'Create new location',
|
||||||
|
url: "{% url 'stock-location-create' %}",
|
||||||
|
},
|
||||||
|
]
|
||||||
});
|
});
|
||||||
return false;
|
return false;
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user