| 
									
										
										
										
											2018-06-14 13:14:35 -04:00
										 |  |  | {% extends 'dcim/device.html' %} | 
					
						
							| 
									
										
										
										
											2018-11-05 13:00:46 -05:00
										 |  |  | {% load helpers %} | 
					
						
							| 
									
										
										
										
											2016-03-01 11:23:03 -05:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-05-23 17:18:48 -04:00
										 |  |  | {% block title %}{{ device }} - Inventory{% endblock %} | 
					
						
							| 
									
										
										
										
											2016-03-01 11:23:03 -05:00
										 |  |  | 
 | 
					
						
							|  |  |  | {% block content %} | 
					
						
							| 
									
										
										
										
											2018-06-14 13:14:35 -04:00
										 |  |  |     <div class="row"> | 
					
						
							|  |  |  |         <div class="col-md-4"> | 
					
						
							|  |  |  |             <div class="panel panel-default"> | 
					
						
							|  |  |  |                 <div class="panel-heading"> | 
					
						
							|  |  |  |                     <strong>Chassis</strong> | 
					
						
							|  |  |  |                 </div> | 
					
						
							|  |  |  |                 <table class="table table-hover panel-body attr-table"> | 
					
						
							|  |  |  |                     <tr> | 
					
						
							|  |  |  |                         <td>Model</td> | 
					
						
							| 
									
										
										
										
											2019-02-06 10:23:30 -05:00
										 |  |  |                         <td>{{ device.device_type.display_name }}</td> | 
					
						
							| 
									
										
										
										
											2018-06-14 13:14:35 -04:00
										 |  |  |                     </tr> | 
					
						
							|  |  |  |                     <tr> | 
					
						
							|  |  |  |                         <td>Serial Number</td> | 
					
						
							| 
									
										
										
										
											2018-11-05 13:00:46 -05:00
										 |  |  |                         <td><span>{{ device.serial|placeholder }}</span></td> | 
					
						
							| 
									
										
										
										
											2018-06-14 13:14:35 -04:00
										 |  |  |                     </tr> | 
					
						
							| 
									
										
										
										
											2016-03-01 11:23:03 -05:00
										 |  |  |                     <tr> | 
					
						
							| 
									
										
										
										
											2018-06-14 13:14:35 -04:00
										 |  |  |                         <td>Asset Tag</td> | 
					
						
							| 
									
										
										
										
											2018-11-05 13:00:46 -05:00
										 |  |  |                         <td><span>{{ device.asset_tag|placeholder }}</span></td> | 
					
						
							| 
									
										
										
										
											2016-03-01 11:23:03 -05:00
										 |  |  |                     </tr> | 
					
						
							| 
									
										
										
										
											2018-06-14 13:14:35 -04:00
										 |  |  |                 </table> | 
					
						
							|  |  |  |             </div> | 
					
						
							|  |  |  |         </div> | 
					
						
							|  |  |  |         <div class="col-md-8"> | 
					
						
							|  |  |  |             <div class="panel panel-default"> | 
					
						
							|  |  |  |                 <div class="panel-heading"> | 
					
						
							|  |  |  |                     <strong>Hardware</strong> | 
					
						
							| 
									
										
										
										
											2018-01-30 13:06:43 -05:00
										 |  |  |                 </div> | 
					
						
							| 
									
										
										
										
											2018-06-14 13:14:35 -04:00
										 |  |  |                 <table class="table table-hover table-condensed panel-body" id="hardware"> | 
					
						
							|  |  |  |                     <thead> | 
					
						
							|  |  |  |                         <tr> | 
					
						
							|  |  |  |                             <th>Name</th> | 
					
						
							|  |  |  |                             <th></th> | 
					
						
							|  |  |  |                             <th>Manufacturer</th> | 
					
						
							| 
									
										
										
										
											2019-06-05 12:10:33 -04:00
										 |  |  |                             <th>Part ID</th> | 
					
						
							| 
									
										
										
										
											2018-06-14 13:14:35 -04:00
										 |  |  |                             <th>Serial Number</th> | 
					
						
							|  |  |  |                             <th>Asset Tag</th> | 
					
						
							|  |  |  |                             <th>Description</th> | 
					
						
							|  |  |  |                             <th></th> | 
					
						
							|  |  |  |                         </tr> | 
					
						
							|  |  |  |                     </thead> | 
					
						
							|  |  |  |                     <tbody> | 
					
						
							|  |  |  |                         {% for item in inventory_items %} | 
					
						
							|  |  |  |                             {% with template_name='dcim/inc/inventoryitem.html' indent=0 %} | 
					
						
							|  |  |  |                                 {% include template_name %} | 
					
						
							|  |  |  |                             {% endwith %} | 
					
						
							|  |  |  |                         {% endfor %} | 
					
						
							|  |  |  |                     </tbody> | 
					
						
							|  |  |  |                 </table> | 
					
						
							|  |  |  |                 {% if perms.dcim.add_inventoryitem %} | 
					
						
							| 
									
										
										
										
											2019-03-05 15:42:47 -06:00
										 |  |  |                     <div class="panel-footer text-right noprint"> | 
					
						
							| 
									
										
										
										
											2018-06-14 13:14:35 -04:00
										 |  |  |                         <a href="{% url 'dcim:inventoryitem_add' device=device.pk %}" class="btn btn-primary btn-xs"> | 
					
						
							|  |  |  |                             <span class="fa fa-plus" aria-hidden="true"></span> Add Inventory Item | 
					
						
							|  |  |  |                         </a> | 
					
						
							|  |  |  |                     </div> | 
					
						
							|  |  |  |                 {% endif %} | 
					
						
							|  |  |  |             </div> | 
					
						
							| 
									
										
										
										
											2016-03-01 11:23:03 -05:00
										 |  |  |         </div> | 
					
						
							|  |  |  |     </div> | 
					
						
							|  |  |  | {% endblock %} |