From 187a789f99ecbc708de517c6b54d480b68ba59fe Mon Sep 17 00:00:00 2001 From: antoliny0919 Date: Thu, 7 Aug 2025 22:17:50 +0900 Subject: Fixed #34643 -- Moved inputs beneath labels and errors in admin forms. Thanks Sarah Boyce and Jacob Walls for reviews. Co-authored-by: Hrushikesh Vaidya --- docs/ref/contrib/admin/_images/fieldsets.png | Bin 18267 -> 56736 bytes docs/ref/contrib/admin/_images/raw_id_fields.png | Bin 997 -> 4003 bytes docs/ref/contrib/admin/index.txt | 13 +++++++------ 3 files changed, 7 insertions(+), 6 deletions(-) (limited to 'docs/ref/contrib/admin') diff --git a/docs/ref/contrib/admin/_images/fieldsets.png b/docs/ref/contrib/admin/_images/fieldsets.png index e5bc614f25..5b3f472b8d 100644 Binary files a/docs/ref/contrib/admin/_images/fieldsets.png and b/docs/ref/contrib/admin/_images/fieldsets.png differ diff --git a/docs/ref/contrib/admin/_images/raw_id_fields.png b/docs/ref/contrib/admin/_images/raw_id_fields.png index 7f16b11032..42f1d48fc2 100644 Binary files a/docs/ref/contrib/admin/_images/raw_id_fields.png and b/docs/ref/contrib/admin/_images/raw_id_fields.png differ diff --git a/docs/ref/contrib/admin/index.txt b/docs/ref/contrib/admin/index.txt index d52857d6ba..b3c7c2c426 100644 --- a/docs/ref/contrib/admin/index.txt +++ b/docs/ref/contrib/admin/index.txt @@ -418,22 +418,23 @@ subclass:: * ``classes`` A list or tuple containing extra CSS classes to apply to the fieldset. This can include any custom CSS class defined in the project, as well - as any of the CSS classes provided by Django. Within the default admin - site CSS stylesheet, two particularly useful classes are defined: - ``collapse`` and ``wide``. + as the CSS class provided by Django: ``collapse``. Example:: { - "classes": ["wide", "collapse"], + "classes": ["collapse"], } - Fieldsets with the ``wide`` style will be given extra horizontal - space in the admin interface. Fieldsets with a name and the ``collapse`` style will be initially collapsed, using an expandable widget with a toggle for switching their visibility. + .. versionchanged:: 6.1 + + The ``wide`` class has been removed, as it was made obsolete by the + new admin layout. + * ``description`` A string of optional extra text to be displayed at the top of each fieldset, under the heading of the fieldset. -- cgit v1.3