Adapt tracing view to account for split ends (WIP)

This commit is contained in:
Jeremy Stretch
2020-04-15 17:09:04 -04:00
parent 5205c4963f
commit 29707cd496
5 changed files with 46 additions and 19 deletions

View File

@@ -50,4 +50,19 @@
</div>
{% if not forloop.last %}<hr />{% endif %}
{% endfor %}
<div class="row">
<div class="col-md-11 col-md-offset-1">
{% if split_ends %}
<h3 class="text-danger text-center"><i class="fa fa-warning"></i> Trace Split</h3>
<p>Select a termination to continue:</p>
<ul>
{% for termination in split_ends %}
<li><a href="{% url 'dcim:frontport_trace' pk=termination.pk %}">{{ termination.parent }} / {{ termination }}</a></li>
{% endfor %}
</ul>
{% else %}
<h3 class="text-success text-center">Trace completed!</h3>
{% endif %}
</div>
</div>
{% endblock %}