| 
									
										
										
										
											2020-06-25 11:00:25 -04:00
										 |  |  | {% extends 'dcim/device_component.html' %} | 
					
						
							|  |  |  | {% load helpers %} | 
					
						
							| 
									
										
										
										
											2020-06-25 13:27:01 -04:00
										 |  |  | {% load plugins %} | 
					
						
							| 
									
										
										
										
											2020-06-25 11:00:25 -04:00
										 |  |  | 
 | 
					
						
							|  |  |  | {% block content %} | 
					
						
							|  |  |  |     <div class="row"> | 
					
						
							|  |  |  |         <div class="col-md-6"> | 
					
						
							|  |  |  |             <div class="panel panel-default"> | 
					
						
							|  |  |  |                 <div class="panel-heading"> | 
					
						
							|  |  |  |                     <strong>Power Port</strong> | 
					
						
							|  |  |  |                 </div> | 
					
						
							|  |  |  |                 <table class="table table-hover panel-body attr-table"> | 
					
						
							|  |  |  |                     <tr> | 
					
						
							|  |  |  |                         <td>Device</td> | 
					
						
							|  |  |  |                         <td> | 
					
						
							| 
									
										
										
										
											2020-11-19 11:29:18 -05:00
										 |  |  |                             <a href="{{ object.device.get_absolute_url }}">{{ object.device }}</a> | 
					
						
							| 
									
										
										
										
											2020-06-25 11:00:25 -04:00
										 |  |  |                         </td> | 
					
						
							|  |  |  |                     </tr> | 
					
						
							|  |  |  |                     <tr> | 
					
						
							|  |  |  |                         <td>Name</td> | 
					
						
							| 
									
										
										
										
											2020-11-19 11:29:18 -05:00
										 |  |  |                         <td>{{ object.name }}</td> | 
					
						
							| 
									
										
										
										
											2020-06-25 11:00:25 -04:00
										 |  |  |                     </tr> | 
					
						
							|  |  |  |                     <tr> | 
					
						
							|  |  |  |                         <td>Label</td> | 
					
						
							| 
									
										
										
										
											2020-11-19 11:29:18 -05:00
										 |  |  |                         <td>{{ object.label|placeholder }}</td> | 
					
						
							| 
									
										
										
										
											2020-06-25 11:00:25 -04:00
										 |  |  |                     </tr> | 
					
						
							|  |  |  |                     <tr> | 
					
						
							|  |  |  |                         <td>Type</td> | 
					
						
							| 
									
										
										
										
											2020-11-19 11:29:18 -05:00
										 |  |  |                         <td>{{ object.get_type_display }}</td> | 
					
						
							| 
									
										
										
										
											2020-06-25 11:00:25 -04:00
										 |  |  |                     </tr> | 
					
						
							|  |  |  |                     <tr> | 
					
						
							|  |  |  |                         <td>Description</td> | 
					
						
							| 
									
										
										
										
											2020-11-19 11:29:18 -05:00
										 |  |  |                         <td>{{ object.description|placeholder }}</td> | 
					
						
							| 
									
										
										
										
											2020-06-25 11:00:25 -04:00
										 |  |  |                     </tr> | 
					
						
							|  |  |  |                     <tr> | 
					
						
							|  |  |  |                         <td>Maximum Draw</td> | 
					
						
							| 
									
										
										
										
											2020-11-19 11:29:18 -05:00
										 |  |  |                         <td>{{ object.maximum_draw|placeholder }}</td> | 
					
						
							| 
									
										
										
										
											2020-06-25 11:00:25 -04:00
										 |  |  |                     </tr> | 
					
						
							|  |  |  |                     <tr> | 
					
						
							|  |  |  |                         <td>Allocated Draw</td> | 
					
						
							| 
									
										
										
										
											2020-11-19 11:29:18 -05:00
										 |  |  |                         <td>{{ object.allocated_draw|placeholder }}</td> | 
					
						
							| 
									
										
										
										
											2020-06-25 11:00:25 -04:00
										 |  |  |                     </tr> | 
					
						
							|  |  |  |                 </table> | 
					
						
							|  |  |  |             </div> | 
					
						
							| 
									
										
										
										
											2021-03-01 13:07:25 -05:00
										 |  |  |             {% include 'inc/custom_fields_panel.html' %} | 
					
						
							| 
									
										
										
										
											2020-11-19 11:29:18 -05:00
										 |  |  |             {% include 'extras/inc/tags_panel.html' with tags=object.tags.all %} | 
					
						
							|  |  |  |             {% plugin_left_page object %} | 
					
						
							| 
									
										
										
										
											2020-06-25 11:00:25 -04:00
										 |  |  |         </div> | 
					
						
							|  |  |  |         <div class="col-md-6"> | 
					
						
							|  |  |  |             <div class="panel panel-default"> | 
					
						
							|  |  |  |                 <div class="panel-heading"> | 
					
						
							|  |  |  |                     <strong>Connection</strong> | 
					
						
							|  |  |  |                 </div> | 
					
						
							| 
									
										
										
										
											2021-03-01 21:34:42 -05:00
										 |  |  |                 {% if object.mark_connected %} | 
					
						
							|  |  |  |                     <div class="panel-body text-muted"> | 
					
						
							|  |  |  |                       <span class="text-success"><i class="mdi mdi-check-bold"></i></span> Marked as connected | 
					
						
							|  |  |  |                     </div> | 
					
						
							|  |  |  |                 {% elif object.cable %} | 
					
						
							| 
									
										
										
										
											2020-06-25 11:00:25 -04:00
										 |  |  |                     <table class="table table-hover panel-body attr-table"> | 
					
						
							| 
									
										
										
										
											2020-10-05 13:23:55 -04:00
										 |  |  |                         <tr> | 
					
						
							|  |  |  |                             <td>Cable</td> | 
					
						
							|  |  |  |                             <td> | 
					
						
							| 
									
										
										
										
											2020-11-19 11:29:18 -05:00
										 |  |  |                                 <a href="{{ object.cable.get_absolute_url }}">{{ object.cable }}</a> | 
					
						
							|  |  |  |                                 <a href="{% url 'dcim:powerport_trace' pk=object.pk %}" class="btn btn-primary btn-xs" title="Trace"> | 
					
						
							| 
									
										
										
										
											2020-11-06 14:33:20 -05:00
										 |  |  |                                     <i class="mdi mdi-transit-connection-variant" aria-hidden="true"></i> | 
					
						
							| 
									
										
										
										
											2020-10-05 13:23:55 -04:00
										 |  |  |                                 </a> | 
					
						
							|  |  |  |                             </td> | 
					
						
							|  |  |  |                         </tr> | 
					
						
							| 
									
										
										
										
											2020-11-19 11:29:18 -05:00
										 |  |  |                         {% if object.connected_endpoint %} | 
					
						
							| 
									
										
										
										
											2020-06-25 11:00:25 -04:00
										 |  |  |                             <tr> | 
					
						
							|  |  |  |                                 <td>Device</td> | 
					
						
							|  |  |  |                                 <td> | 
					
						
							| 
									
										
										
										
											2020-11-19 11:29:18 -05:00
										 |  |  |                                     <a href="{{ object.connected_endpoint.device.get_absolute_url }}">{{ object.connected_endpoint.device }}</a> | 
					
						
							| 
									
										
										
										
											2020-06-25 11:00:25 -04:00
										 |  |  |                                 </td> | 
					
						
							|  |  |  |                             </tr> | 
					
						
							|  |  |  |                             <tr> | 
					
						
							|  |  |  |                                 <td>Name</td> | 
					
						
							|  |  |  |                                 <td> | 
					
						
							| 
									
										
										
										
											2020-11-19 11:29:18 -05:00
										 |  |  |                                     <a href="{{ object.connected_endpoint.get_absolute_url }}">{{ object.connected_endpoint.name }}</a> | 
					
						
							| 
									
										
										
										
											2020-06-25 11:00:25 -04:00
										 |  |  |                                 </td> | 
					
						
							|  |  |  |                             </tr> | 
					
						
							|  |  |  |                             <tr> | 
					
						
							|  |  |  |                                 <td>Type</td> | 
					
						
							| 
									
										
										
										
											2020-11-19 11:29:18 -05:00
										 |  |  |                                 <td>{{ object.connected_endpoint.get_type_display|placeholder }}</td> | 
					
						
							| 
									
										
										
										
											2020-06-25 11:00:25 -04:00
										 |  |  |                             </tr> | 
					
						
							|  |  |  |                             <tr> | 
					
						
							|  |  |  |                                 <td>Description</td> | 
					
						
							| 
									
										
										
										
											2020-11-19 11:29:18 -05:00
										 |  |  |                                 <td>{{ object.connected_endpoint.description|placeholder }}</td> | 
					
						
							| 
									
										
										
										
											2020-06-25 11:00:25 -04:00
										 |  |  |                             </tr> | 
					
						
							| 
									
										
										
										
											2020-10-05 13:23:55 -04:00
										 |  |  |                             <tr> | 
					
						
							|  |  |  |                                 <td>Path Status</td> | 
					
						
							|  |  |  |                                 <td> | 
					
						
							| 
									
										
										
										
											2020-11-19 11:29:18 -05:00
										 |  |  |                                     {% if object.path.is_active %} | 
					
						
							| 
									
										
										
										
											2020-10-05 13:23:55 -04:00
										 |  |  |                                         <span class="label label-success">Reachable</span> | 
					
						
							|  |  |  |                                     {% else %} | 
					
						
							|  |  |  |                                         <span class="label label-danger">Not Reachable</span> | 
					
						
							|  |  |  |                                     {% endif %} | 
					
						
							|  |  |  |                                 </td> | 
					
						
							|  |  |  |                             </tr> | 
					
						
							| 
									
										
										
										
											2020-06-25 11:00:25 -04:00
										 |  |  |                         {% endif %} | 
					
						
							|  |  |  |                     </table> | 
					
						
							|  |  |  |                 {% else %} | 
					
						
							|  |  |  |                     <div class="panel-body text-muted"> | 
					
						
							|  |  |  |                         Not connected | 
					
						
							| 
									
										
										
										
											2020-08-13 11:14:33 -04:00
										 |  |  |                         {% if perms.dcim.add_cable %} | 
					
						
							|  |  |  |                             <span class="dropdown pull-right"> | 
					
						
							|  |  |  |                                 <button type="button" class="btn btn-primary btn-sm dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> | 
					
						
							| 
									
										
										
										
											2020-11-06 14:49:14 -05:00
										 |  |  |                                     <span class="mdi mdi-ethernet-cable" aria-hidden="true"></span> Connect | 
					
						
							| 
									
										
										
										
											2020-08-13 11:14:33 -04:00
										 |  |  |                                 </button> | 
					
						
							|  |  |  |                                 <ul class="dropdown-menu dropdown-menu-right"> | 
					
						
							| 
									
										
										
										
											2020-11-19 11:29:18 -05:00
										 |  |  |                                     <li><a href="{% url 'dcim:powerport_connect' termination_a_id=object.pk termination_b_type='power-outlet' %}?return_url={{ object.get_absolute_url }}">Power Outlet</a></li> | 
					
						
							|  |  |  |                                     <li><a href="{% url 'dcim:powerport_connect' termination_a_id=object.pk termination_b_type='power-feed' %}?return_url={{ object.get_absolute_url }}">Power Feed</a></li> | 
					
						
							| 
									
										
										
										
											2020-08-13 11:14:33 -04:00
										 |  |  |                                 </ul> | 
					
						
							|  |  |  |                             </span> | 
					
						
							|  |  |  |                         {% endif %} | 
					
						
							| 
									
										
										
										
											2020-06-25 11:00:25 -04:00
										 |  |  |                     </div> | 
					
						
							|  |  |  |                 {% endif %} | 
					
						
							|  |  |  |             </div> | 
					
						
							| 
									
										
										
										
											2020-11-19 11:29:18 -05:00
										 |  |  |             {% plugin_right_page object %} | 
					
						
							| 
									
										
										
										
											2020-06-25 13:27:01 -04:00
										 |  |  |         </div> | 
					
						
							|  |  |  |     </div> | 
					
						
							|  |  |  |     <div class="row"> | 
					
						
							|  |  |  |         <div class="col-md-12"> | 
					
						
							| 
									
										
										
										
											2020-11-19 11:29:18 -05:00
										 |  |  |             {% plugin_full_width_page object %} | 
					
						
							| 
									
										
										
										
											2020-06-25 11:00:25 -04:00
										 |  |  |         </div> | 
					
						
							|  |  |  |     </div> | 
					
						
							|  |  |  | {% endblock %} |