|
@@ -150,7 +150,7 @@
|
|
|
{% if perms.dcim.change_interface %}
|
|
{% if perms.dcim.change_interface %}
|
|
|
{% if iface.cable %}
|
|
{% if iface.cable %}
|
|
|
{% include 'dcim/inc/cable_toggle_buttons.html' with cable=iface.cable %}
|
|
{% include 'dcim/inc/cable_toggle_buttons.html' with cable=iface.cable %}
|
|
|
- {% elif not iface.is_virtual and perms.dcim.add_cable %}
|
|
|
|
|
|
|
+ {% elif iface.is_connectable and perms.dcim.add_cable %}
|
|
|
<a href="{% url 'dcim:interface_connect' termination_a_id=iface.pk %}?return_url={{ device.get_absolute_url }}" class="btn btn-success btn-xs" title="Connect">
|
|
<a href="{% url 'dcim:interface_connect' termination_a_id=iface.pk %}?return_url={{ device.get_absolute_url }}" class="btn btn-success btn-xs" title="Connect">
|
|
|
<i class="glyphicon glyphicon-resize-small" aria-hidden="true"></i>
|
|
<i class="glyphicon glyphicon-resize-small" aria-hidden="true"></i>
|
|
|
</a>
|
|
</a>
|