| 
									
										
										
										
											2016-03-01 11:23:03 -05:00
										 |  |  | {% extends '_base.html' %} | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-05-23 17:18:48 -04:00
										 |  |  | {% block title %}{{ device }} - Inventory{% endblock %} | 
					
						
							| 
									
										
										
										
											2016-03-01 11:23:03 -05:00
										 |  |  | 
 | 
					
						
							|  |  |  | {% block content %} | 
					
						
							| 
									
										
										
										
											2017-01-05 15:31:41 -05:00
										 |  |  | {% include 'dcim/inc/device_header.html' with active_tab='inventory' %} | 
					
						
							| 
									
										
										
										
											2016-03-01 11:23:03 -05:00
										 |  |  | <div class="row"> | 
					
						
							|  |  |  |     <div class="col-md-4"> | 
					
						
							|  |  |  |         <div class="panel panel-default"> | 
					
						
							|  |  |  |             <div class="panel-heading"> | 
					
						
							|  |  |  |                 <strong>Chassis</strong> | 
					
						
							|  |  |  |             </div> | 
					
						
							| 
									
										
										
										
											2016-12-14 17:09:33 -05:00
										 |  |  |             <table class="table table-hover panel-body attr-table"> | 
					
						
							| 
									
										
										
										
											2016-03-01 11:23:03 -05:00
										 |  |  |                 <tr> | 
					
						
							|  |  |  |                     <td>Model</td> | 
					
						
							| 
									
										
										
										
											2016-12-08 09:59:21 -05:00
										 |  |  |                     <td>{{ device.device_type.full_name }}</td> | 
					
						
							| 
									
										
										
										
											2016-03-01 11:23:03 -05:00
										 |  |  |                 </tr> | 
					
						
							|  |  |  |                 <tr> | 
					
						
							|  |  |  |                     <td>Serial Number</td> | 
					
						
							| 
									
										
										
										
											2016-08-11 11:58:21 -04:00
										 |  |  |                     <td> | 
					
						
							|  |  |  |                         {% if device.serial %} | 
					
						
							|  |  |  |                             <span>{{ device.serial }}</span> | 
					
						
							|  |  |  |                         {% else %} | 
					
						
							|  |  |  |                             <span class="text-muted">N/A</span> | 
					
						
							|  |  |  |                         {% endif %} | 
					
						
							|  |  |  |                     </td> | 
					
						
							|  |  |  |                 </tr> | 
					
						
							|  |  |  |                 <tr> | 
					
						
							|  |  |  |                     <td>Asset Tag</td> | 
					
						
							|  |  |  |                     <td> | 
					
						
							|  |  |  |                         {% if device.asset_tag %} | 
					
						
							|  |  |  |                             <span>{{ device.asset_tag }}</span> | 
					
						
							|  |  |  |                         {% else %} | 
					
						
							|  |  |  |                             <span class="text-muted">N/A</span> | 
					
						
							|  |  |  |                         {% endif %} | 
					
						
							|  |  |  |                     </td> | 
					
						
							| 
									
										
										
										
											2016-03-01 11:23:03 -05:00
										 |  |  |                 </tr> | 
					
						
							|  |  |  |             </table> | 
					
						
							|  |  |  |         </div> | 
					
						
							|  |  |  |     </div> | 
					
						
							|  |  |  |     <div class="col-md-8"> | 
					
						
							|  |  |  |         <div class="panel panel-default"> | 
					
						
							|  |  |  |             <div class="panel-heading"> | 
					
						
							|  |  |  |                 <strong>Hardware</strong> | 
					
						
							|  |  |  |             </div> | 
					
						
							| 
									
										
										
										
											2016-06-15 13:27:12 -04:00
										 |  |  |             <table class="table table-hover table-condensed panel-body" id="hardware"> | 
					
						
							| 
									
										
										
										
											2016-03-01 11:23:03 -05:00
										 |  |  |                 <thead> | 
					
						
							|  |  |  |                     <tr> | 
					
						
							| 
									
										
										
										
											2017-03-21 12:54:08 -04:00
										 |  |  |                         <th>Name</th> | 
					
						
							| 
									
										
										
										
											2016-06-15 14:00:45 -04:00
										 |  |  |                         <th></th> | 
					
						
							| 
									
										
										
										
											2016-08-10 10:24:47 -04:00
										 |  |  |                         <th>Manufacturer</th> | 
					
						
							| 
									
										
										
										
											2016-03-01 11:23:03 -05:00
										 |  |  |                         <th>Part Number</th> | 
					
						
							|  |  |  |                         <th>Serial Number</th> | 
					
						
							| 
									
										
										
										
											2017-06-23 17:05:37 -04:00
										 |  |  |                         <th>Asset Tag</th> | 
					
						
							|  |  |  |                         <th>Description</th> | 
					
						
							| 
									
										
										
										
											2016-06-15 13:27:12 -04:00
										 |  |  |                         <th></th> | 
					
						
							| 
									
										
										
										
											2016-03-01 11:23:03 -05:00
										 |  |  |                     </tr> | 
					
						
							|  |  |  |                 </thead> | 
					
						
							|  |  |  |                 <tbody> | 
					
						
							| 
									
										
										
										
											2017-03-21 12:54:08 -04:00
										 |  |  |                     {% for item in inventory_items %} | 
					
						
							|  |  |  |                         {% with template_name='dcim/inc/inventoryitem.html' indent=0 %} | 
					
						
							|  |  |  |                             {% include template_name %} | 
					
						
							|  |  |  |                         {% endwith %} | 
					
						
							| 
									
										
										
										
											2016-03-01 11:23:03 -05:00
										 |  |  |                     {% endfor %} | 
					
						
							|  |  |  |                 </tbody> | 
					
						
							|  |  |  |             </table> | 
					
						
							|  |  |  |         </div> | 
					
						
							| 
									
										
										
										
											2017-03-21 12:54:08 -04:00
										 |  |  |         {% if perms.dcim.add_inventoryitem %} | 
					
						
							|  |  |  |             <a href="{% url 'dcim:inventoryitem_add' device=device.pk %}" class="btn btn-success"> | 
					
						
							| 
									
										
										
										
											2016-08-01 13:29:45 -04:00
										 |  |  |                 <span class="fa fa-plus" aria-hidden="true"></span> | 
					
						
							| 
									
										
										
										
											2017-03-21 12:54:08 -04:00
										 |  |  |                 Add Inventory Item | 
					
						
							| 
									
										
										
										
											2016-06-15 14:00:45 -04:00
										 |  |  |             </a> | 
					
						
							|  |  |  |         {% endif %} | 
					
						
							| 
									
										
										
										
											2016-03-01 11:23:03 -05:00
										 |  |  |     </div> | 
					
						
							|  |  |  | </div> | 
					
						
							|  |  |  | {% endblock %} |