#22329 closed Cleanup/optimization (fixed)

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

Reported by: timo 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

Description

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 13 months ago by timo

  • Version changed from 1.6 to master

comment:2 Changed 13 months ago by Tim Graham <timograham@…>

  • Resolution set to fixed
  • Status changed from new to closed

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