Opened 5 years ago

Closed 5 years ago

#22329 closed Cleanup/optimization (fixed)

Use label_tag() in admin auth templates to remove hardcoded class='required'

Reported by: Tim Graham Owned by: nobody
Component: contrib.admin Version: master
Severity: Normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no


Now that #17922 is resolved, we can fix some TODOs in the admin templates by replacing hardcoded class="required" by using {{ form.field.label_tag }} and adding Form.required_class_class = 'required'.

Change History (2)

comment:1 Changed 5 years ago by Tim Graham

Version: 1.6master

comment:2 Changed 5 years ago by Tim Graham <timograham@…>

Resolution: fixed
Status: newclosed

In ed4c2e1c0d9e43c09767b02fd8b4bd74a5dfe512:

Fixed #22329 -- Used label_tag() in some admin auth templates.

refs #17922.

Note: See TracTickets for help on using tickets.
Back to Top