mirror of
				https://github.com/inventree/InvenTree.git
				synced 2025-10-31 21:25:42 +00:00 
			
		
		
		
	Style supplier-part selection as 'select2'
This commit is contained in:
		| @@ -22,12 +22,16 @@ | |||||||
|                 {{ part.full_name }} <small><i>{{ part.description }}</i></small> |                 {{ part.full_name }} <small><i>{{ part.description }}</i></small> | ||||||
|             </td> |             </td> | ||||||
|             <td> |             <td> | ||||||
|                 <select name="part_select_{{ item.part.id }}"> |                 <div class='control-group'> | ||||||
|                     <option value=''>---------</option> |                     <div class='controls'> | ||||||
|                     {% for supplier in part.supplier_parts.all %} |                         <select class='select' id='id_supplier_part_{{ part.id }}' name="part_select_{{ part.id }}"> | ||||||
|                     <option value="{{ supplier.id }}"{% if part.get_default_supplier and part.get_default_supplier.id == supplier.id %} selected="selected"{% endif %}>{{ supplier }}</option> |                             <option value=''>---------</option> | ||||||
|                     {% endfor %} |                             {% for supplier in part.supplier_parts.all %} | ||||||
|                 </select> |                             <option value="{{ supplier.id }}"{% if part.get_default_supplier and part.get_default_supplier.id == supplier.id %} selected="selected"{% endif %}>{{ supplier }}</option> | ||||||
|  |                             {% endfor %} | ||||||
|  |                         </select> | ||||||
|  |                     </div> | ||||||
|  |                 </div> | ||||||
|             </td> |             </td> | ||||||
|             <td> |             <td> | ||||||
|                 <input class='numberinput' min='0' value='{{ part.quantity_to_order }}' name='part_quantity_{{ part.id }}'/> |                 <input class='numberinput' min='0' value='{{ part.quantity_to_order }}' name='part_quantity_{{ part.id }}'/> | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user