mirror of
				https://github.com/netbox-community/netbox.git
				synced 2024-05-10 07:54:54 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			12 lines
		
	
	
		
			605 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
		
			605 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
{% if perms.dcim.change_cable %}
 | 
						|
    {% if cable.status == 'connected' %}
 | 
						|
        <button type="button" class="btn btn-warning btn-sm cable-toggle connected" title="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="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 %}
 |