The
[https://github.com/django/django/blob/0dd29209091280ccf34e07c9468746c396b7778e/django/contrib/admin/static/admin/js/admin/DateTimeShortcuts.js#L61
addTimezoneWarning()] function has "always" added the warning by inserting
a <br> and <span>.
Also using a <div> with the help class here avoids problems with left-
alignment of the inserted text and removes the need for the <br>.
--
Ticket URL: <https://code.djangoproject.com/ticket/33750>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* Attachment "33750.jpg" added.
Old description:
> Previously help_text was inserted as <p> in admin. This was changed in
> #27207 to use a <div>.
>
> The
> [https://github.com/django/django/blob/0dd29209091280ccf34e07c9468746c396b7778e/django/contrib/admin/static/admin/js/admin/DateTimeShortcuts.js#L61
> addTimezoneWarning()] function has "always" added the warning by
> inserting a <br> and <span>.
>
> Also using a <div> with the help class here avoids problems with left-
> alignment of the inserted text and removes the need for the <br>.
New description:
Previously help_text was inserted as <p> in admin. This was changed in
#27207 to use a <div>.
The
[https://github.com/django/django/blob/0dd29209091280ccf34e07c9468746c396b7778e/django/contrib/admin/static/admin/js/admin/DateTimeShortcuts.js#L61
addTimezoneWarning()] function has "always" added the warning by inserting
a <br> and <span>.
Also using a <div> with the help class here avoids problems with left-
alignment of the inserted text (see attachment) and removes the need for
the <br>.
PR: https://github.com/django/django/pull/15743
--
--
Ticket URL: <https://code.djangoproject.com/ticket/33750#comment:1>
* stage: Unreviewed => Accepted
--
Ticket URL: <https://code.djangoproject.com/ticket/33750#comment:2>
* owner: nobody => Florian Demmer
* stage: Accepted => Ready for checkin
--
Ticket URL: <https://code.djangoproject.com/ticket/33750#comment:3>
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"f3e2bb0833105f43efc0cc6f19c8465bc1b1a785" f3e2bb0]:
{{{
#!CommitTicketReference repository=""
revision="f3e2bb0833105f43efc0cc6f19c8465bc1b1a785"
Fixed #33750 -- Fixed timezone warning alignment with help texts.
Previously help_text was wrapped in a paragraph, but the change to div
broke the alignment, refs #27207.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/33750#comment:4>
Comment (by Carlton Gibson <carlton@…>):
In [changeset:"6f80050496780e2f8a65e2a4374dd6375c9fbfa5" 6f80050]:
{{{
#!CommitTicketReference repository=""
revision="6f80050496780e2f8a65e2a4374dd6375c9fbfa5"
Fixed #33781 -- Restored alignment for admin split-field timezone
warnings.
Regression in f3e2bb0833105f43efc0cc6f19c8465bc1b1a785.
Refs #33750 and #27207.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/33750#comment:5>