mirror of
				https://github.com/inventree/InvenTree.git
				synced 2025-11-03 22:55:43 +00:00 
			
		
		
		
	Js forms updates (#4378)
* Refactor forms for creating and editing SalesOrder - Common function for defining fields * More visual improvements for forms * Refactor fields for SupplierPartPriceBreak * More refactoring * Refactor for stockitemtestresult table * Comment fields * JS linting fix
This commit is contained in:
		@@ -793,17 +793,9 @@
 | 
			
		||||
 | 
			
		||||
            constructForm('{% url "api-part-test-template-list" %}', {
 | 
			
		||||
                method: 'POST',
 | 
			
		||||
                fields: {
 | 
			
		||||
                    test_name: {},
 | 
			
		||||
                    description: {},
 | 
			
		||||
                    required: {},
 | 
			
		||||
                    requires_value: {},
 | 
			
		||||
                    requires_attachment: {},
 | 
			
		||||
                    part: {
 | 
			
		||||
                        value: {{ part.pk }},
 | 
			
		||||
                        hidden: true,
 | 
			
		||||
                    }
 | 
			
		||||
                },
 | 
			
		||||
                fields: partTestTemplateFields({
 | 
			
		||||
                    part: {{ part.pk }}
 | 
			
		||||
                }),
 | 
			
		||||
                title: '{% trans "Add Test Result Template" %}',
 | 
			
		||||
                onSuccess: function() {
 | 
			
		||||
                    $("#test-template-table").bootstrapTable("refresh");
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user