From 9a8d33e6bf59c55da494a90ec7c2d75a59f92a91 Mon Sep 17 00:00:00 2001 From: Matt Date: Wed, 18 Aug 2021 16:49:15 -0700 Subject: [PATCH] Fixes #6979: Don't show 'Create & Add Another' button when editing/creating a circuit --- .../circuits/circuittermination_edit.html | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/netbox/templates/circuits/circuittermination_edit.html b/netbox/templates/circuits/circuittermination_edit.html index 97be47986..76849d017 100644 --- a/netbox/templates/circuits/circuittermination_edit.html +++ b/netbox/templates/circuits/circuittermination_edit.html @@ -56,3 +56,17 @@ {% render_field form.description %} {% endblock %} + +{# Override buttons block, 'Create & Add Another'/'_addanother' is not needed on a circuit. #} +{% block buttons %} + Cancel + {% if obj.pk %} + + {% else %} + + {% endif %} +{% endblock buttons %}