From 32b366a86482b06db417aec67e42ca23d69da48a Mon Sep 17 00:00:00 2001 From: David Smith Date: Fri, 14 May 2021 08:46:22 +0100 Subject: [3.2.x] Refs #32338 -- Improved accessibility of RadioSelect examples in docs. Co-authored-by: Thibaud Colas Backport of d8c17aa10c7f41e692fb6f5d0bf2fab7a90b9374 from main --- docs/intro/tutorial04.txt | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'docs/intro/tutorial04.txt') diff --git a/docs/intro/tutorial04.txt b/docs/intro/tutorial04.txt index 414156b56c..4dae8892ae 100644 --- a/docs/intro/tutorial04.txt +++ b/docs/intro/tutorial04.txt @@ -20,16 +20,16 @@ tutorial, so that the template contains an HTML ``
`` element: .. code-block:: html+django :caption: polls/templates/polls/detail.html -

{{ question.question_text }}

- - {% if error_message %}

{{ error_message }}

{% endif %} - {% csrf_token %} - {% for choice in question.choice_set.all %} - -
- {% endfor %} +
+

{{ question.question_text }}

+ {% if error_message %}

{{ error_message }}

{% endif %} + {% for choice in question.choice_set.all %} + +
+ {% endfor %} +
-- cgit v1.3