From 1ea0b6d83fea80beec312a384116d0bdd983035b Mon Sep 17 00:00:00 2001 From: Jeremy Stretch Date: Wed, 14 Feb 2024 14:46:49 -0500 Subject: [PATCH] Restore missing edit button for script modules --- netbox/templates/extras/script_list.html | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/netbox/templates/extras/script_list.html b/netbox/templates/extras/script_list.html index b7c2509ed..f54238682 100644 --- a/netbox/templates/extras/script_list.html +++ b/netbox/templates/extras/script_list.html @@ -26,11 +26,18 @@
{{ module }}
- {% if perms.extras.delete_scriptmodule %} - - {% trans "Delete" %} - - {% endif %} +
+ {% if perms.extras.edit_scriptmodule %} + + {% trans "Edit" %} + + {% endif %} + {% if perms.extras.delete_scriptmodule %} + + {% trans "Delete" %} + + {% endif %} +
{% if module.scripts %}