mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
13 lines
649 B
HTML
13 lines
649 B
HTML
{% load i18n %}
|
|
{% if perms.dcim.change_cable %}
|
|
{% if cable.status == 'connected' %}
|
|
<button type="button" class="btn btn-warning btn-sm cable-toggle connected" title="{% trans "Mark Planned" %}" data-url="{% url 'dcim-api:cable-detail' pk=cable.pk %}">
|
|
<i class="mdi mdi-lan-disconnect" aria-hidden="true"></i>
|
|
</button>
|
|
{% else %}
|
|
<button type="button" class="btn btn-info btn-sm cable-toggle" title="{% trans "Mark Installed" %}" data-url="{% url 'dcim-api:cable-detail' pk=cable.pk %}">
|
|
<i class="mdi mdi-lan-connect" aria-hidden="true"></i>
|
|
</button>
|
|
{% endif %}
|
|
{% endif %}
|