From b22b141a9691f9517c38d5e52f0acb55f9d96c67 Mon Sep 17 00:00:00 2001 From: Arthur Hanson Date: Thu, 29 Aug 2024 17:46:27 -0700 Subject: [PATCH] 17301 use standard edit/delete buttons on script page --- netbox/templates/extras/script_list.html | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/netbox/templates/extras/script_list.html b/netbox/templates/extras/script_list.html index ee5d73b1e..2d7bdbdf7 100644 --- a/netbox/templates/extras/script_list.html +++ b/netbox/templates/extras/script_list.html @@ -28,14 +28,12 @@
{% if perms.extras.edit_scriptmodule %} - - {% trans "Edit" %} - + {% url 'extras:scriptmodule_edit' pk=module.pk as edit_url %} + {% include 'buttons/edit.html' with url=edit_url %} {% endif %} {% if perms.extras.delete_scriptmodule %} - - {% trans "Delete" %} - + {% url 'extras:scriptmodule_delete' pk=module.pk as delete_url %} + {% include 'buttons/delete.html' with url=delete_url %} {% endif %}