From 8abc051a59fb8f94d5e26aa06058fa7d6b32c2a0 Mon Sep 17 00:00:00 2001 From: Oliver Zander Date: Tue, 18 Nov 2025 09:51:25 +0100 Subject: [PATCH] full width related labels for all product change forms --- input/admin.py | 3 +++ input/static/css/full-width-related-labels.css | 3 +++ input/templates/admin/input/project/change_form.html | 10 ---------- 3 files changed, 6 insertions(+), 10 deletions(-) create mode 100644 input/static/css/full-width-related-labels.css delete mode 100644 input/templates/admin/input/project/change_form.html diff --git a/input/admin.py b/input/admin.py index b441386..059eaed 100755 --- a/input/admin.py +++ b/input/admin.py @@ -157,6 +157,9 @@ class BaseProjectAdmin(admin.ModelAdmin): class Media: js = ('dropdown/js/otrs_link.js',) + css = { + 'all': ['css/full-width-related-labels.css'], + } granted: bool diff --git a/input/static/css/full-width-related-labels.css b/input/static/css/full-width-related-labels.css new file mode 100644 index 0000000..c121cb5 --- /dev/null +++ b/input/static/css/full-width-related-labels.css @@ -0,0 +1,3 @@ +.related-widget-wrapper div label { + width: auto; +} diff --git a/input/templates/admin/input/project/change_form.html b/input/templates/admin/input/project/change_form.html deleted file mode 100644 index 55d00d5..0000000 --- a/input/templates/admin/input/project/change_form.html +++ /dev/null @@ -1,10 +0,0 @@ -{% extends 'admin/change_form.html' %} - -{% block extrastyle %} - {{ block.super }} - -{% endblock %}