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
|
|
|
|
2021-04-05 12:06:59 -04:00
|
|
|
{% block breadcrumbs %}
|
2021-04-18 11:35:42 -07:00
|
|
|
<li class="breadcrumb-item"><a href="{% url 'dcim:device_poweroutlets' pk=object.device.pk %}">Power Outlets</a></li>
|
|
|
|
<li class="breadcrumb-item">{{ object }}</li>
|
2021-04-05 12:06:59 -04:00
|
|
|
{% endblock %}
|
|
|
|
|
2020-06-25 11:00:25 -04:00
|
|
|
{% block content %}
|
2021-04-18 11:35:42 -07:00
|
|
|
<div class="row mb-3">
|
2020-06-25 11:00:25 -04:00
|
|
|
<div class="col-md-6">
|
2021-04-18 11:35:42 -07:00
|
|
|
<div class="card">
|
|
|
|
<h5 class="card-header">
|
|
|
|
Power Outlet
|
|
|
|
</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>
|
|
|
|
<tr>
|
|
|
|
<th scope="row">Description</th>
|
|
|
|
<td>{{ object.description|placeholder }}</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th scope="row">Power Port</th>
|
|
|
|
<td>{{ object.power_port }}</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th scope="row">Feed Leg</th>
|
|
|
|
<td>{{ object.get_feed_leg_display }}</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
2020-06-25 11:00:25 -04:00
|
|
|
</div>
|
|
|
|
</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">
|
2021-04-18 11:35:42 -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 11:35:42 -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 11:35:42 -07:00
|
|
|
<table class="table table-hover attr-table">
|
2020-10-05 13:23:55 -04:00
|
|
|
<tr>
|
2021-04-18 11:35:42 -07:00
|
|
|
<th scope="row">Cable</th>
|
2020-10-05 13:23:55 -04:00
|
|
|
<td>
|
2020-11-19 11:29:18 -05:00
|
|
|
<a href="{{ object.cable.get_absolute_url }}">{{ object.cable }}</a>
|
2021-04-18 11:35:42 -07:00
|
|
|
<a href="{% url 'dcim:poweroutlet_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-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>
|
2021-04-18 11:35:42 -07:00
|
|
|
<th scope="row">Device</th>
|
2020-06-25 11:00:25 -04:00
|
|
|
<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>
|
2021-04-18 11:35:42 -07:00
|
|
|
<th scope="row">Name</th>
|
2020-06-25 11:00:25 -04:00
|
|
|
<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>
|
2021-04-18 11:35:42 -07:00
|
|
|
<th scope="row">Type</th>
|
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>
|
2021-04-18 11:35:42 -07:00
|
|
|
<th scope="row">Description</th>
|
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>
|
2021-04-18 11:35:42 -07:00
|
|
|
<th scope="row">Path Status</th>
|
2020-10-05 13:23:55 -04:00
|
|
|
<td>
|
2020-11-19 11:29:18 -05:00
|
|
|
{% if object.path.is_active %}
|
2021-04-18 11:35:42 -07:00
|
|
|
<span class="badge bg-success">Reachable</span>
|
2020-10-05 13:23:55 -04:00
|
|
|
{% else %}
|
2021-04-18 11:35:42 -07:00
|
|
|
<span class="badge bg-danger">Not Reachable</span>
|
2020-10-05 13:23:55 -04:00
|
|
|
{% endif %}
|
|
|
|
</td>
|
|
|
|
</tr>
|
2020-06-25 11:00:25 -04:00
|
|
|
{% endif %}
|
|
|
|
</table>
|
|
|
|
{% else %}
|
2021-04-18 11:35:42 -07:00
|
|
|
<div class="text-muted">
|
|
|
|
Not Connected
|
2020-08-13 11:14:33 -04:00
|
|
|
{% if perms.dcim.add_cable %}
|
2021-04-18 11:35:42 -07:00
|
|
|
<a href="{% url 'dcim:poweroutlet_connect' termination_a_id=object.pk termination_b_type='power-port' %}?return_url={{ object.get_absolute_url }}" title="Connect" class="btn btn-primary btn-sm float-end">
|
2020-11-06 14:49:14 -05:00
|
|
|
<i class="mdi mdi-ethernet-cable" aria-hidden="true"></i> Connect
|
2020-08-13 11:14:33 -04:00
|
|
|
</a>
|
|
|
|
{% endif %}
|
2020-06-25 11:00:25 -04:00
|
|
|
</div>
|
|
|
|
{% endif %}
|
2021-04-18 11:35:42 -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>
|
2021-04-18 11:35:42 -07:00
|
|
|
<div class="row mb-3">
|
2020-06-25 13:27:01 -04:00
|
|
|
<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 %}
|