From e3e9eceda9c098a05d9176c589571ab90d48baa3 Mon Sep 17 00:00:00 2001 From: Arthur Hanson Date: Thu, 29 Aug 2024 18:08:35 -0700 Subject: [PATCH] 17301 redo card header --- netbox/templates/extras/script_list.html | 33 ++++++++++++++---------- 1 file changed, 20 insertions(+), 13 deletions(-) diff --git a/netbox/templates/extras/script_list.html b/netbox/templates/extras/script_list.html index 2d7bdbdf7..988f3f524 100644 --- a/netbox/templates/extras/script_list.html +++ b/netbox/templates/extras/script_list.html @@ -22,21 +22,28 @@ {% for module in script_modules %} {% include 'inc/sync_warning.html' with object=module %}
-

-
- {{ module }} + +
+
+

+
+ {{ module }} +
+

-
- {% if perms.extras.edit_scriptmodule %} - {% url 'extras:scriptmodule_edit' pk=module.pk as edit_url %} - {% include 'buttons/edit.html' with url=edit_url %} - {% endif %} - {% if perms.extras.delete_scriptmodule %} - {% url 'extras:scriptmodule_delete' pk=module.pk as delete_url %} - {% include 'buttons/delete.html' with url=delete_url %} - {% endif %} +
+
+ {% if perms.extras.edit_scriptmodule %} + {% url 'extras:scriptmodule_edit' pk=module.pk as edit_url %} + {% include 'buttons/edit.html' with url=edit_url %} + {% endif %} + {% if perms.extras.delete_scriptmodule %} + {% url 'extras:scriptmodule_delete' pk=module.pk as delete_url %} + {% include 'buttons/delete.html' with url=delete_url %} + {% endif %} +
-

+
{% if module.scripts %}