1
0
mirror of https://github.com/django/django.git synced 2025-10-27 07:36:08 +00:00

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

Backport of bcad5ad92b 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> <label for="id_email">Email address:</label>
``{{ field.legend_tag }}`` ``{{ field.legend_tag }}``
Similar to ``field.label_tag`` but uses a ``<legend>`` tag in place of Similar to ``field.label_tag`` but uses a ``<legend>`` tag in place of
``<label>``, for widgets with multiple inputs wrapped in a ``<fieldset>``. ``<label>``, for widgets with multiple inputs wrapped in a ``<fieldset>``.
``{{ field.use_fieldset }}`` ``{{ field.use_fieldset }}``
This attribute is ``True`` if the form field's widget contains multiple This attribute is ``True`` if the form field's widget contains multiple
inputs that should be semantically grouped in a ``<fieldset>`` with a inputs that should be semantically grouped in a ``<fieldset>`` with a
``<legend>`` to improve accessibility. An example use in a template: ``<legend>`` to improve accessibility. An example use in a template: