mirror of
				https://github.com/inventree/InvenTree.git
				synced 2025-11-04 15:15:42 +00:00 
			
		
		
		
	secondary modal for part form
This commit is contained in:
		@@ -17,7 +17,16 @@ function yesNoLabel(value) {
 | 
				
			|||||||
function partFields(options={}) {
 | 
					function partFields(options={}) {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    var fields = {
 | 
					    var fields = {
 | 
				
			||||||
        category: {},
 | 
					        category: {
 | 
				
			||||||
 | 
					            secondary: {
 | 
				
			||||||
 | 
					                title: '{% trans "Add Part Category" %}',
 | 
				
			||||||
 | 
					                fields: function(data) {
 | 
				
			||||||
 | 
					                    var fields = categoryFields();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					                    return fields;
 | 
				
			||||||
 | 
					                }
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
 | 
					        },
 | 
				
			||||||
        name: {},
 | 
					        name: {},
 | 
				
			||||||
        IPN: {},
 | 
					        IPN: {},
 | 
				
			||||||
        revision: {},
 | 
					        revision: {},
 | 
				
			||||||
@@ -30,7 +39,8 @@ function partFields(options={}) {
 | 
				
			|||||||
        link: {
 | 
					        link: {
 | 
				
			||||||
            icon: 'fa-link',
 | 
					            icon: 'fa-link',
 | 
				
			||||||
        },
 | 
					        },
 | 
				
			||||||
        default_location: {},
 | 
					        default_location: {
 | 
				
			||||||
 | 
					        },
 | 
				
			||||||
        default_supplier: {},
 | 
					        default_supplier: {},
 | 
				
			||||||
        default_expiry: {
 | 
					        default_expiry: {
 | 
				
			||||||
            icon: 'fa-calendar-alt',
 | 
					            icon: 'fa-calendar-alt',
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -2,6 +2,18 @@
 | 
				
			|||||||
{% load inventree_extras %}
 | 
					{% load inventree_extras %}
 | 
				
			||||||
{% load status_codes %}
 | 
					{% load status_codes %}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					function locationFields() {
 | 
				
			||||||
 | 
					    return {
 | 
				
			||||||
 | 
					        parent: {
 | 
				
			||||||
 | 
					            help_text: '{% trans "Parent stock location" %}',
 | 
				
			||||||
 | 
					        },
 | 
				
			||||||
 | 
					        name: {},
 | 
				
			||||||
 | 
					        description: {},
 | 
				
			||||||
 | 
					    };
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/* Stock API functions
 | 
					/* Stock API functions
 | 
				
			||||||
 * Requires api.js to be loaded first
 | 
					 * Requires api.js to be loaded first
 | 
				
			||||||
 */
 | 
					 */
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user