mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
Pretty-up cable trace template
This commit is contained in:
@ -48,21 +48,50 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{% if not forloop.last %}<hr />{% endif %}
|
<hr />
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-11 col-md-offset-1">
|
|
||||||
{% if split_ends %}
|
{% if split_ends %}
|
||||||
<h3 class="text-danger text-center"><i class="fa fa-warning"></i> Trace Split</h3>
|
<div class="col-md-7 col-md-offset-3">
|
||||||
<p>Select a termination to continue:</p>
|
<div class="panel panel-warning">
|
||||||
<ul>
|
<div class="panel-heading">
|
||||||
|
<strong><i class="fa fa-warning"></i> Trace Split</strong>
|
||||||
|
</div>
|
||||||
|
<div class="panel-body">
|
||||||
|
There are multiple possible paths from this point. Select a port to continue.
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="panel panel-default">
|
||||||
|
<table class="panel-body table">
|
||||||
|
<thead>
|
||||||
|
<tr class="table-headings">
|
||||||
|
<th>Port</th>
|
||||||
|
<th>Connected</th>
|
||||||
|
<th>Type</th>
|
||||||
|
<th>Description</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
{% for termination in split_ends %}
|
{% for termination in split_ends %}
|
||||||
<li><a href="{% url 'dcim:frontport_trace' pk=termination.pk %}">{{ termination.parent }} / {{ termination }}</a></li>
|
<tr>
|
||||||
{% endfor %}
|
<td><a href="{% url 'dcim:frontport_trace' pk=termination.pk %}">{{ termination }}</a></td>
|
||||||
</ul>
|
<td>
|
||||||
|
{% if termination.cable %}
|
||||||
|
<i class="fa fa-check text-success" title="Yes"></i>
|
||||||
{% else %}
|
{% else %}
|
||||||
|
<i class="fa fa-times text-danger" title="No"></i>
|
||||||
|
{% endif %}
|
||||||
|
</td>
|
||||||
|
<td>{{ termination.get_type_display }}</td>
|
||||||
|
<td>{{ termination.description|placeholder }}</td>
|
||||||
|
</tr>
|
||||||
|
{% endfor %}
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
{% else %}
|
||||||
|
<div class="col-md-11 col-md-offset-1">
|
||||||
<h3 class="text-success text-center">Trace completed!</h3>
|
<h3 class="text-success text-center">Trace completed!</h3>
|
||||||
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
Reference in New Issue
Block a user