| 
									
										
										
										
											2021-12-18 14:02:01 -05:00
										 |  |  | {% extends 'generic/object.html' %} | 
					
						
							| 
									
										
										
										
											2020-06-25 11:00:25 -04:00
										 |  |  | {% load helpers %} | 
					
						
							| 
									
										
										
										
											2020-06-25 13:27:01 -04:00
										 |  |  | {% load plugins %} | 
					
						
							| 
									
										
										
										
											2020-06-25 11:00:25 -04:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-12-18 14:02:01 -05:00
										 |  |  | {% block breadcrumbs %} | 
					
						
							|  |  |  |   {{ block.super }} | 
					
						
							|  |  |  |   <li class="breadcrumb-item"> | 
					
						
							|  |  |  |     <a href="{% url 'dcim:device_frontports' pk=object.device.pk %}">{{ object.device }}</a> | 
					
						
							|  |  |  |   </li> | 
					
						
							|  |  |  | {% endblock %} | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-06-25 11:00:25 -04:00
										 |  |  | {% block content %} | 
					
						
							|  |  |  |     <div class="row"> | 
					
						
							| 
									
										
										
										
											2021-04-30 15:55:37 -07:00
										 |  |  |         <div class="col col-md-6"> | 
					
						
							| 
									
										
										
										
											2021-04-18 00:22:52 -07:00
										 |  |  |             <div class="card"> | 
					
						
							|  |  |  |                 <h5 class="card-header"> | 
					
						
							|  |  |  |                     Front Port | 
					
						
							|  |  |  |                 </h5> | 
					
						
							|  |  |  |                 <div class="card-body"> | 
					
						
							|  |  |  |                     <table class="table table-hover attr-table"> | 
					
						
							|  |  |  |                         <tr> | 
					
						
							|  |  |  |                             <th scope="row">Device</th> | 
					
						
							|  |  |  |                             <td> | 
					
						
							|  |  |  |                                 <a href="{{ object.device.get_absolute_url }}">{{ object.device }}</a> | 
					
						
							|  |  |  |                             </td> | 
					
						
							|  |  |  |                         </tr> | 
					
						
							|  |  |  |                         <tr> | 
					
						
							|  |  |  |                             <th scope="row">Name</th> | 
					
						
							|  |  |  |                             <td>{{ object.name }}</td> | 
					
						
							|  |  |  |                         </tr> | 
					
						
							|  |  |  |                         <tr> | 
					
						
							|  |  |  |                             <th scope="row">Label</th> | 
					
						
							|  |  |  |                             <td>{{ object.label|placeholder }}</td> | 
					
						
							|  |  |  |                         </tr> | 
					
						
							|  |  |  |                         <tr> | 
					
						
							|  |  |  |                             <th scope="row">Type</th> | 
					
						
							|  |  |  |                             <td>{{ object.get_type_display }}</td> | 
					
						
							|  |  |  |                         </tr> | 
					
						
							| 
									
										
										
										
											2021-06-09 16:51:51 -04:00
										 |  |  |                         <tr> | 
					
						
							|  |  |  |                           <th scope="row">Color</th> | 
					
						
							|  |  |  |                           <td> | 
					
						
							|  |  |  |                             <span class="badge color-label" style="background-color: #{{ object.color }}"> </span> | 
					
						
							|  |  |  |                           </td> | 
					
						
							|  |  |  |                         </tr> | 
					
						
							| 
									
										
										
										
											2021-04-18 00:22:52 -07:00
										 |  |  |                         <tr> | 
					
						
							|  |  |  |                             <th scope="row">Rear Port</th> | 
					
						
							|  |  |  |                             <td> | 
					
						
							|  |  |  |                                 <a href="{{ object.rear_port.get_absolute_url }}">{{ object.rear_port }}</a> | 
					
						
							|  |  |  |                             </td> | 
					
						
							|  |  |  |                         </tr> | 
					
						
							|  |  |  |                         <tr> | 
					
						
							|  |  |  |                             <th scope="row">Rear Port Position</th> | 
					
						
							|  |  |  |                             <td>{{ object.rear_port_position }}</td> | 
					
						
							|  |  |  |                         </tr> | 
					
						
							|  |  |  |                         <tr> | 
					
						
							|  |  |  |                             <th scope="row">Description</th> | 
					
						
							|  |  |  |                             <td>{{ object.description|placeholder }}</td> | 
					
						
							|  |  |  |                         </tr> | 
					
						
							|  |  |  |                     </table> | 
					
						
							| 
									
										
										
										
											2020-06-25 11:00:25 -04:00
										 |  |  |                 </div> | 
					
						
							|  |  |  |             </div> | 
					
						
							| 
									
										
										
										
											2021-10-19 14:21:31 -04:00
										 |  |  |             {% include 'inc/panels/custom_fields.html' %} | 
					
						
							| 
									
										
										
										
											2021-10-21 11:23:31 -04:00
										 |  |  |             {% include 'inc/panels/tags.html' %} | 
					
						
							| 
									
										
										
										
											2020-11-19 11:29:18 -05:00
										 |  |  |             {% plugin_left_page object %} | 
					
						
							| 
									
										
										
										
											2020-06-25 11:00:25 -04:00
										 |  |  |         </div> | 
					
						
							| 
									
										
										
										
											2021-04-30 15:55:37 -07:00
										 |  |  |         <div class="col col-md-6"> | 
					
						
							| 
									
										
										
										
											2021-04-18 00:22:52 -07:00
										 |  |  |             <div class="card"> | 
					
						
							|  |  |  |                 <h5 class="card-header"> | 
					
						
							|  |  |  |                     Connection | 
					
						
							|  |  |  |                 </h5> | 
					
						
							|  |  |  |                 <div class="card-body"> | 
					
						
							| 
									
										
										
										
											2021-03-01 21:34:42 -05:00
										 |  |  |                 {% if object.mark_connected %} | 
					
						
							| 
									
										
										
										
											2021-04-18 00:22:52 -07:00
										 |  |  |                     <div class="text-muted"> | 
					
						
							|  |  |  |                       <span class="text-success"><i class="mdi mdi-check-bold"></i></span> Marked as Connected | 
					
						
							| 
									
										
										
										
											2021-03-01 21:34:42 -05:00
										 |  |  |                     </div> | 
					
						
							|  |  |  |                 {% elif object.cable %} | 
					
						
							| 
									
										
										
										
											2021-04-18 00:22:52 -07:00
										 |  |  |                     <table class="table table-hover attr-table"> | 
					
						
							| 
									
										
										
										
											2020-06-25 11:00:25 -04:00
										 |  |  |                         <tr> | 
					
						
							| 
									
										
										
										
											2021-04-18 00:22:52 -07:00
										 |  |  |                             <th scope="row">Cable</th> | 
					
						
							| 
									
										
										
										
											2020-06-25 11:00:25 -04:00
										 |  |  |                             <td> | 
					
						
							| 
									
										
										
										
											2020-11-19 11:29:18 -05:00
										 |  |  |                                 <a href="{{ object.cable.get_absolute_url }}">{{ object.cable }}</a> | 
					
						
							| 
									
										
										
										
											2021-04-18 00:22:52 -07:00
										 |  |  |                                 <a href="{% url 'dcim:frontport_trace' pk=object.pk %}" class="btn btn-primary btn-sm lh-1" title="Trace"> | 
					
						
							| 
									
										
										
										
											2020-11-06 14:33:20 -05:00
										 |  |  |                                     <i class="mdi mdi-transit-connection-variant" aria-hidden="true"></i> | 
					
						
							| 
									
										
										
										
											2020-06-25 11:00:25 -04:00
										 |  |  |                                 </a> | 
					
						
							|  |  |  |                             </td> | 
					
						
							|  |  |  |                         </tr> | 
					
						
							|  |  |  |                         <tr> | 
					
						
							| 
									
										
										
										
											2021-04-18 00:22:52 -07:00
										 |  |  |                             <th scope="row">Connection Status</th> | 
					
						
							| 
									
										
										
										
											2020-06-25 11:00:25 -04:00
										 |  |  |                             <td> | 
					
						
							| 
									
										
										
										
											2020-11-19 11:29:18 -05:00
										 |  |  |                                 {% if object.cable.status %} | 
					
						
							| 
									
										
										
										
											2021-04-18 00:22:52 -07:00
										 |  |  |                                     <span class="badge bg-success">{{ object.cable.get_status_display }}</span> | 
					
						
							| 
									
										
										
										
											2020-06-25 11:00:25 -04:00
										 |  |  |                                 {% else %} | 
					
						
							| 
									
										
										
										
											2021-04-18 00:22:52 -07:00
										 |  |  |                                     <span class="badge bg-info">{{ object.cable.get_status_display }}</span> | 
					
						
							| 
									
										
										
										
											2020-06-25 11:00:25 -04:00
										 |  |  |                                 {% endif %} | 
					
						
							|  |  |  |                             </td> | 
					
						
							|  |  |  |                         </tr> | 
					
						
							|  |  |  |                     </table> | 
					
						
							|  |  |  |                 {% else %} | 
					
						
							| 
									
										
										
										
											2021-04-18 00:22:52 -07:00
										 |  |  |                     <div class="text-muted"> | 
					
						
							|  |  |  |                         Not Connected | 
					
						
							| 
									
										
										
										
											2020-08-13 11:14:33 -04:00
										 |  |  |                         {% if perms.dcim.add_cable %} | 
					
						
							| 
									
										
										
										
											2021-04-18 00:22:52 -07:00
										 |  |  |                             <div class="dropdown float-end"> | 
					
						
							|  |  |  |                                 <button type="button" class="btn btn-primary btn-sm dropdown-toggle" data-bs-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> | 
					
						
							| 
									
										
										
										
											2021-04-18 00:22:52 -07:00
										 |  |  |                                 <ul class="dropdown-menu dropdown-menu-end"> | 
					
						
							|  |  |  |                                     <li> | 
					
						
							|  |  |  |                                         <a class="dropdown-item" href="{% url 'dcim:frontport_connect' termination_a_id=object.pk termination_b_type='interface' %}?return_url={{ object.get_absolute_url }}">Interface</a> | 
					
						
							|  |  |  |                                     </li> | 
					
						
							|  |  |  |                                     <li> | 
					
						
							|  |  |  |                                         <a class="dropdown-item" href="{% url 'dcim:frontport_connect' termination_a_id=object.pk termination_b_type='console-server-port' %}?return_url={{ object.get_absolute_url }}">Console Server Port</a> | 
					
						
							|  |  |  |                                     </li> | 
					
						
							|  |  |  |                                     <li> | 
					
						
							|  |  |  |                                         <a class="dropdown-item" href="{% url 'dcim:frontport_connect' termination_a_id=object.pk termination_b_type='console-port' %}?return_url={{ object.get_absolute_url }}">Console Port</a> | 
					
						
							|  |  |  |                                     </li> | 
					
						
							|  |  |  |                                     <li> | 
					
						
							|  |  |  |                                         <a class="dropdown-item" href="{% url 'dcim:frontport_connect' termination_a_id=object.pk termination_b_type='front-port' %}?return_url={{ object.get_absolute_url }}">Front Port</a> | 
					
						
							|  |  |  |                                     </li> | 
					
						
							|  |  |  |                                     <li> | 
					
						
							|  |  |  |                                         <a class="dropdown-item" href="{% url 'dcim:frontport_connect' termination_a_id=object.pk termination_b_type='rear-port' %}?return_url={{ object.get_absolute_url }}">Rear Port</a> | 
					
						
							|  |  |  |                                     </li> | 
					
						
							|  |  |  |                                     <li> | 
					
						
							|  |  |  |                                         <a class="dropdown-item" href="{% url 'dcim:frontport_connect' termination_a_id=object.pk termination_b_type='circuit-termination' %}?return_url={{ object.get_absolute_url }}">Circuit Termination</a> | 
					
						
							|  |  |  |                                     </li> | 
					
						
							|  |  |  |                                 </ul> | 
					
						
							|  |  |  |                             </div> | 
					
						
							| 
									
										
										
										
											2020-08-13 11:14:33 -04:00
										 |  |  |                         {% endif %} | 
					
						
							| 
									
										
										
										
											2020-06-25 11:00:25 -04:00
										 |  |  |                     </div> | 
					
						
							|  |  |  |                 {% endif %} | 
					
						
							| 
									
										
										
										
											2021-04-18 00:22:52 -07:00
										 |  |  |                 </div> | 
					
						
							| 
									
										
										
										
											2020-06-25 11:00:25 -04:00
										 |  |  |             </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"> | 
					
						
							| 
									
										
										
										
											2021-04-30 15:55:37 -07:00
										 |  |  |         <div class="col 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 %} |