mirror of
https://github.com/netbox-community/netbox.git
synced 2026-01-08 13:00:08 -06:00
Rearranged panels under front/rear port views
This commit is contained in:
@@ -58,32 +58,10 @@
|
|||||||
</div>
|
</div>
|
||||||
{% include 'inc/panels/custom_fields.html' %}
|
{% include 'inc/panels/custom_fields.html' %}
|
||||||
{% include 'inc/panels/tags.html' %}
|
{% include 'inc/panels/tags.html' %}
|
||||||
|
{% include 'dcim/inc/panels/inventory_items.html' %}
|
||||||
{% plugin_left_page object %}
|
{% plugin_left_page object %}
|
||||||
</div>
|
</div>
|
||||||
<div class="col col-12 col-md-6">
|
<div class="col col-12 col-md-6">
|
||||||
<div class="card">
|
|
||||||
<h2 class="card-header">{% trans "Port Mappings" %}</h2>
|
|
||||||
<table class="table table-hover">
|
|
||||||
{% if rear_port_mappings %}
|
|
||||||
<thead>
|
|
||||||
<tr>
|
|
||||||
<th>{% trans "Position" %}</th>
|
|
||||||
<th>{% trans "Rear Port" %}</th>
|
|
||||||
</tr>
|
|
||||||
</thead>
|
|
||||||
{% endif %}
|
|
||||||
{% for mapping in rear_port_mappings %}
|
|
||||||
<tr>
|
|
||||||
<td>{{ mapping.front_port_position }}</td>
|
|
||||||
<td>
|
|
||||||
<a href="{{ mapping.rear_port.get_absolute_url }}">{{ mapping.rear_port }}:{{ mapping.rear_port_position }}</a>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
{% empty %}
|
|
||||||
{% trans "No mappings defined" %}
|
|
||||||
{% endfor %}
|
|
||||||
</table>
|
|
||||||
</div>
|
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<h2 class="card-header">{% trans "Connection" %}</h2>
|
<h2 class="card-header">{% trans "Connection" %}</h2>
|
||||||
{% if object.mark_connected %}
|
{% if object.mark_connected %}
|
||||||
@@ -145,7 +123,29 @@
|
|||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
{% include 'dcim/inc/panels/inventory_items.html' %}
|
<div class="card">
|
||||||
|
<h2 class="card-header">{% trans "Port Mappings" %}</h2>
|
||||||
|
<table class="table table-hover">
|
||||||
|
{% if rear_port_mappings %}
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th>{% trans "Position" %}</th>
|
||||||
|
<th>{% trans "Rear Port" %}</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
{% endif %}
|
||||||
|
{% for mapping in rear_port_mappings %}
|
||||||
|
<tr>
|
||||||
|
<td>{{ mapping.front_port_position }}</td>
|
||||||
|
<td>
|
||||||
|
<a href="{{ mapping.rear_port.get_absolute_url }}">{{ mapping.rear_port }}:{{ mapping.rear_port_position }}</a>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
{% empty %}
|
||||||
|
{% trans "No mappings defined" %}
|
||||||
|
{% endfor %}
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
{% plugin_right_page object %}
|
{% plugin_right_page object %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -58,32 +58,10 @@
|
|||||||
</div>
|
</div>
|
||||||
{% include 'inc/panels/custom_fields.html' %}
|
{% include 'inc/panels/custom_fields.html' %}
|
||||||
{% include 'inc/panels/tags.html' %}
|
{% include 'inc/panels/tags.html' %}
|
||||||
|
{% include 'dcim/inc/panels/inventory_items.html' %}
|
||||||
{% plugin_left_page object %}
|
{% plugin_left_page object %}
|
||||||
</div>
|
</div>
|
||||||
<div class="col col-12 col-md-6">
|
<div class="col col-12 col-md-6">
|
||||||
<div class="card">
|
|
||||||
<h2 class="card-header">{% trans "Port Mappings" %}</h2>
|
|
||||||
<table class="table table-hover">
|
|
||||||
{% if front_port_mappings %}
|
|
||||||
<thead>
|
|
||||||
<tr>
|
|
||||||
<th>{% trans "Position" %}</th>
|
|
||||||
<th>{% trans "Front Port" %}</th>
|
|
||||||
</tr>
|
|
||||||
</thead>
|
|
||||||
{% endif %}
|
|
||||||
{% for mapping in front_port_mappings %}
|
|
||||||
<tr>
|
|
||||||
<td>{{ mapping.rear_port_position }}</td>
|
|
||||||
<td>
|
|
||||||
<a href="{{ mapping.front_port.get_absolute_url }}">{{ mapping.front_port }}:{{ mapping.front_port_position }}</a>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
{% empty %}
|
|
||||||
{% trans "No mappings defined" %}
|
|
||||||
{% endfor %}
|
|
||||||
</table>
|
|
||||||
</div>
|
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<h2 class="card-header">{% trans "Connection" %}</h2>
|
<h2 class="card-header">{% trans "Connection" %}</h2>
|
||||||
{% if object.mark_connected %}
|
{% if object.mark_connected %}
|
||||||
@@ -139,7 +117,29 @@
|
|||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
{% include 'dcim/inc/panels/inventory_items.html' %}
|
<div class="card">
|
||||||
|
<h2 class="card-header">{% trans "Port Mappings" %}</h2>
|
||||||
|
<table class="table table-hover">
|
||||||
|
{% if front_port_mappings %}
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th>{% trans "Position" %}</th>
|
||||||
|
<th>{% trans "Front Port" %}</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
{% endif %}
|
||||||
|
{% for mapping in front_port_mappings %}
|
||||||
|
<tr>
|
||||||
|
<td>{{ mapping.rear_port_position }}</td>
|
||||||
|
<td>
|
||||||
|
<a href="{{ mapping.front_port.get_absolute_url }}">{{ mapping.front_port }}:{{ mapping.front_port_position }}</a>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
{% empty %}
|
||||||
|
{% trans "No mappings defined" %}
|
||||||
|
{% endfor %}
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
{% plugin_right_page object %}
|
{% plugin_right_page object %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user