1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Clean up power connection tables

This commit is contained in:
Jeremy Stretch
2020-10-06 13:30:28 -04:00
parent d984dbd83b
commit c813ae4f04
5 changed files with 32 additions and 17 deletions

View File

@@ -792,7 +792,6 @@
<th>Draw</th>
<th>Description</th>
<th>Cable</th>
<th colspan="2">Cable Termination</th>
<th colspan="2">Connection</th>
<th></th>
</tr>
@@ -847,7 +846,6 @@
<th>Input/Leg</th>
<th>Description</th>
<th>Cable</th>
<th colspan="2">Cable Termination</th>
<th colspan="3">Connection</th>
<th></th>
</tr>

View File

@@ -44,11 +44,8 @@
<i class="fa fa-share-alt" aria-hidden="true"></i>
</a>
</td>
{% include 'dcim/inc/cabletermination.html' with termination=po.get_cable_peer %}
{% else %}
<td colspan="3">
<span class="text-muted">Not connected</span>
</td>
<td><span class="text-muted">Not connected</span></td>
{% endif %}
{# Connection #}

View File

@@ -40,11 +40,8 @@
<i class="fa fa-share-alt" aria-hidden="true"></i>
</a>
</td>
{% include 'dcim/inc/cabletermination.html' with termination=pp.get_cable_peer %}
{% else %}
<td colspan="3">
<span class="text-muted">Not connected</span>
</td>
<td><span class="text-muted">Not connected</span></td>
{% endif %}
{# Connection #}

View File

@@ -58,7 +58,7 @@
{% block content %}
<div class="row">
<div class="col-md-3">
<div class="col-md-6">
<div class="panel panel-default">
<div class="panel-heading">
<strong>Power Panel</strong>
@@ -82,17 +82,17 @@
</tr>
</table>
</div>
{% include 'inc/custom_fields_panel.html' with obj=powerpanel %}
{% include 'extras/inc/tags_panel.html' with tags=powerpanel.tags.all url='dcim:powerpanel_list' %}
{% plugin_left_page powerpanel %}
</div>
<div class="col-md-9">
{% include 'panel_table.html' with table=powerfeed_table heading='Connected Feeds' %}
<div class="col-md-6">
{% include 'inc/custom_fields_panel.html' with obj=powerpanel %}
{% include 'extras/inc/tags_panel.html' with tags=powerpanel.tags.all url='dcim:powerpanel_list' %}
{% plugin_right_page powerpanel %}
</div>
</div>
<div class="row">
<div class="col-md-12">
{% include 'panel_table.html' with table=powerfeed_table heading='Connected Feeds' %}
{% plugin_full_width_page powerpanel %}
</div>
</div>