#35556: The checkbox of a BooleanField is displayed before field's name
-------------------------------------+-------------------------------------
               Reporter:  Omid       |          Owner:  nobody
  Shojaee                            |
                   Type:  Bug        |         Status:  new
              Component:  Forms      |        Version:  5.0
               Severity:  Normal     |       Keywords:  BooleanField, Admin
           Triage Stage:             |  Site
  Unreviewed                         |      Has patch:  0
    Needs documentation:  0          |    Needs tests:  0
Patch needs improvement:  0          |  Easy pickings:  0
                  UI/UX:  1          |
-------------------------------------+-------------------------------------
 I have a BooleanField defined like this:


 {{{#!python
 featured = models.BooleanField(verbose_name=_('featured'), default=False)
 }}}


 In the Admin site, I see the checkmark before the field name (screenshot
 is attached).

 My site's language is Farsi, but I switched it to English and got the same
 thing.

 I defined a BooleanField in another model, and again got the same thing.

 I check the page in the Developer Tools and this is what I see:

 {{{
 <input type="checkbox" name="test_field" id="id_test_field">
 <label class="vCheckboxLabel" for="id_test_field">Test field</label>
 }}}

 As far as I understand, this is wrong. The label element should be before
 input element not after it.

 Django version: 5.0.6
 OS: Ubuntu 22.0.4
-- 
Ticket URL: <https://code.djangoproject.com/ticket/35556>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/010701904b6631d2-dc150a35-56ce-4f05-b97d-31bc6b783298-000000%40eu-central-1.amazonses.com.

Reply via email to