mirror of
				https://github.com/inventree/InvenTree.git
				synced 2025-10-31 13:15:43 +00:00 
			
		
		
		
	Merge pull request #523 from SchrodingersGat/template-badge
Display template badge in part table
This commit is contained in:
		| @@ -137,6 +137,10 @@ function loadPartTable(table, url, options={}) { | |||||||
|  |  | ||||||
|             var display = imageHoverIcon(row.image) + renderLink(name, '/part/' + row.pk + '/'); |             var display = imageHoverIcon(row.image) + renderLink(name, '/part/' + row.pk + '/'); | ||||||
|              |              | ||||||
|  |             if (row.is_template) { | ||||||
|  |                 display = display + "<span class='label label-info' style='float: right;'>TEMPLATE</span>"; | ||||||
|  |             } | ||||||
|  |  | ||||||
|             if (!row.active) { |             if (!row.active) { | ||||||
|                 display = display + "<span class='label label-warning' style='float: right;'>INACTIVE</span>"; |                 display = display + "<span class='label label-warning' style='float: right;'>INACTIVE</span>"; | ||||||
|             } |             } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user