mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
Initial work on a cable tracing modal
This commit is contained in:
@@ -776,7 +776,8 @@
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
{% include 'inc/graphs_modal.html' %}
|
||||
{% include 'inc/modal.html' with modal_name='graphs' %}
|
||||
{% include 'inc/modal.html' with modal_name='cabletrace' %}
|
||||
{% include 'secrets/inc/private_key_modal.html' %}
|
||||
{% endblock %}
|
||||
|
||||
@@ -847,6 +848,7 @@ $('button.toggle-ips').click(function() {
|
||||
return false;
|
||||
});
|
||||
</script>
|
||||
<script src="{% static 'js/cabletrace.js' %}?v{{ settings.VERSION }}"></script>
|
||||
<script src="{% static 'js/graphs.js' %}?v{{ settings.VERSION }}"></script>
|
||||
<script src="{% static 'js/secrets.js' %}?v{{ settings.VERSION }}"></script>
|
||||
{% endblock %}
|
||||
|
@@ -32,6 +32,9 @@
|
||||
<td>
|
||||
{% if iface.cable %}
|
||||
<a href="{{ iface.cable.get_absolute_url }}">{{ iface.cable }}</a>
|
||||
<button type="button" class="btn btn-primary btn-xs" data-toggle="modal" data-target="#cabletrace_modal" data-obj="{{ device.name }} - {{ iface.name }}" data-url="{% url 'dcim-api:interface-trace' pk=iface.pk %}" title="Trace cable">
|
||||
<i class="fa fa-share-alt" aria-hidden="true"></i>
|
||||
</button>
|
||||
{% else %}
|
||||
—
|
||||
{% endif %}
|
||||
|
@@ -330,7 +330,7 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% include 'inc/graphs_modal.html' %}
|
||||
{% include 'inc/modal.html' with modal_name='graphs' %}
|
||||
{% endblock %}
|
||||
|
||||
{% block javascript %}
|
||||
|
Reference in New Issue
Block a user