#35191: Allow form renderer to use custom template for label tag
-------------------------------------+-------------------------------------
               Reporter:  oxan       |          Owner:  nobody
                   Type:             |         Status:  new
  Cleanup/optimization               |
              Component:  Forms      |        Version:  5.0
               Severity:  Normal     |       Keywords:  forms render
           Triage Stage:             |  template
  Unreviewed                         |      Has patch:  0
    Needs documentation:  0          |    Needs tests:  0
Patch needs improvement:  0          |  Easy pickings:  1
                  UI/UX:  0          |
-------------------------------------+-------------------------------------
 Currently, a form renderer can't easily change the template used by the
 `BoundField.label_tag()` method: `template_name_label` can be set on the
 form, but there exists no `label_template_name` on the `FormRenderer` that
 it fallbacks to.

 This is problematic if e.g. CSS classes need to be set on the form labels.
 Writing out the `<label>` tag in the template instead of calling
 `label_tag()` is also not an option, as `label_tag()` does somewhat
 complex processing to ensure the correct id (and label) are used.
-- 
Ticket URL: <https://code.djangoproject.com/ticket/35191>
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 django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/0107018da3160a15-67ec007f-79ac-46ed-aa44-e884ca126c77-000000%40eu-central-1.amazonses.com.

Reply via email to