1
0
mirror of https://github.com/django/django.git synced 2025-05-21 06:16:29 +00:00

Fixed #34616 -- Corrected label examples in 5.0 release notes.

This commit is contained in:
Christopher Cave-Ayland 2023-06-01 11:19:11 +01:00 committed by GitHub
parent 91be6e1818
commit 24d56e21c3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -59,7 +59,7 @@ For example, the template below:
<form> <form>
... ...
<div> <div>
{{ form.name.label }} {{ form.name.label_tag }}
{% if form.name.help_text %} {% if form.name.help_text %}
<div class="helptext">{{ form.name.help_text|safe }}</div> <div class="helptext">{{ form.name.help_text|safe }}</div>
{% endif %} {% endif %}
@ -67,7 +67,7 @@ For example, the template below:
{{ form.name }} {{ form.name }}
<div class="row"> <div class="row">
<div class="col"> <div class="col">
{{ form.email.label }} {{ form.email.label_tag }}
{% if form.email.help_text %} {% if form.email.help_text %}
<div class="helptext">{{ form.email.help_text|safe }}</div> <div class="helptext">{{ form.email.help_text|safe }}</div>
{% endif %} {% endif %}
@ -75,7 +75,7 @@ For example, the template below:
{{ form.email }} {{ form.email }}
</div> </div>
<div class="col"> <div class="col">
{{ form.password.label }} {{ form.password.label_tag }}
{% if form.password.help_text %} {% if form.password.help_text %}
<div class="helptext">{{ form.password.help_text|safe }}</div> <div class="helptext">{{ form.password.help_text|safe }}</div>
{% endif %} {% endif %}