From 30f8fb4c110c10b977a8e979f1d92c7f1ad982da Mon Sep 17 00:00:00 2001 From: Jeremy Stretch Date: Thu, 8 Nov 2018 12:27:15 -0500 Subject: [PATCH] Fixes #2572: Add button to disconnect cable from circuit termination --- CHANGELOG.md | 1 + netbox/templates/circuits/inc/circuit_termination.html | 9 ++++++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 49fdc6b04..c8a762249 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -44,6 +44,7 @@ NetBox now supports modeling physical cables for console, power, and interface c * [#2567](https://github.com/digitalocean/netbox/issues/2567) - Introduced proxy models to represent console/power/interface connections * [#2569](https://github.com/digitalocean/netbox/issues/2569) - Added LSH fiber type; removed SC duplex/simplex designations * [#2571](https://github.com/digitalocean/netbox/issues/2571) - Enforce deletion of attached cable when deleting a termination point +* [#2572](https://github.com/digitalocean/netbox/issues/2572) - Add button to disconnect cable from circuit termination ## API Changes diff --git a/netbox/templates/circuits/inc/circuit_termination.html b/netbox/templates/circuits/inc/circuit_termination.html index eba00d2fd..a3cb09b25 100644 --- a/netbox/templates/circuits/inc/circuit_termination.html +++ b/netbox/templates/circuits/inc/circuit_termination.html @@ -40,13 +40,20 @@ Termination {% if termination.cable %} + {% if perms.dcim.delete_cable %} +
+ + Disconnect + +
+ {% endif %} {{ termination.cable }} {% if termination.connected_endpoint %} to {{ termination.connected_endpoint.device }} {{ termination.connected_endpoint }} {% endif %} {% else %} - {% if perms.circuits.change_circuittermination %} + {% if perms.circuits.add_cable %}
Connect