1
0
mirror of https://github.com/django/django.git synced 2025-03-09 17:02:43 +00:00

[5.0.x] Fixed incorrect blockquotes in docs/topics/forms/index.txt.

Backport of bcad5ad92b1dad2874453dee7a480e9b9f29aad5 from main
This commit is contained in:
minusf 2024-04-23 03:26:55 +02:00 committed by Natalia
parent ea81c9d343
commit 8468ea237d

View File

@ -781,12 +781,10 @@ Useful attributes on ``{{ field }}`` include:
<label for="id_email">Email address:</label>
``{{ field.legend_tag }}``
Similar to ``field.label_tag`` but uses a ``<legend>`` tag in place of
``<label>``, for widgets with multiple inputs wrapped in a ``<fieldset>``.
``{{ field.use_fieldset }}``
This attribute is ``True`` if the form field's widget contains multiple
inputs that should be semantically grouped in a ``<fieldset>`` with a
``<legend>`` to improve accessibility. An example use in a template: