Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed #2168 -- Made comment templates more accessible

git-svn-id: http://code.djangoproject.com/svn/django/trunk@3203 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 2837455878c58803095ea1413928b9aa8027e4ad 1 parent fd702fe
Adrian Holovaty authored June 26, 2006
8  django/contrib/comments/templates/comments/form.html
@@ -3,7 +3,7 @@
3 3
 <form {% if photos_optional or photos_required %}enctype="multipart/form-data" {% endif %}action="/comments/post/" method="post">
4 4
 
5 5
 {% if user.is_anonymous %}
6  
-<p>{% trans "Username:" %} <input type="text" name="username" id="id_username" /><br />{% trans "Password:" %} <input type="password" name="password" id="id_password" /> (<a href="/accounts/password_reset/">{% trans "Forgotten your password?" %}</a>)</p>
  6
+<p><label for="id_username">{% trans "Username:" %}</label> <input type="text" name="username" id="id_username" /><br />{% trans "Password:" %} <input type="password" name="password" id="id_password" /> (<a href="/accounts/password_reset/">{% trans "Forgotten your password?" %}</a>)</p>
7 7
 {% else %}
8 8
 <p>{% trans "Username:" %} <strong>{{ user.username }}</strong> (<a href="/accounts/logout/">{% trans "Log out" %}</a>)</p>
9 9
 {% endif %}
@@ -20,11 +20,13 @@
20 20
 {% endif %}
21 21
 
22 22
 {% if photos_optional or photos_required %}
23  
-<p>{% trans "Post a photo" %} ({% if photos_required %}{% trans "Required" %}{% else %}{% trans "Optional" %}{% endif %}): <input type="file" name="photo" /></p>
  23
+<p><label for="id_photo">{% trans "Post a photo" %}</label> ({% if photos_required %}{% trans "Required" %}{% else %}{% trans "Optional" %}{% endif %}):
  24
+<input type="file" name="photo" id="id_photo" /></p>
24 25
 <input type="hidden" name="photo_options" value="{{ photo_options }}" />
25 26
 {% endif %}
26 27
 
27  
-<p>{% trans "Comment:" %}<br /><textarea name="comment" id="id_comment" rows="10" cols="60"></textarea></p>
  28
+<p><label for="id_comment">{% trans "Comment:" %}</label><br />
  29
+<textarea name="comment" id="id_comment" rows="10" cols="60"></textarea></p>
28 30
 
29 31
 <input type="hidden" name="options" value="{{ options }}" />
30 32
 <input type="hidden" name="target" value="{{ target }}" />
4  django/contrib/comments/templates/comments/freeform.html
... ...
@@ -1,8 +1,8 @@
1 1
 {% load i18n %}
2 2
 {% if display_form %}
3 3
 <form action="/comments/postfree/" method="post">
4  
-<p>{% trans "Your name:" %} <input type="text" id="id_person_name" name="person_name" /></p>
5  
-<p>{% trans "Comment:" %}<br /><textarea name="comment" id="id_comment" rows="10" cols="60"></textarea></p>
  4
+<p><label for="id_person_name">{% trans "Your name:" %}</label> <input type="text" id="id_person_name" name="person_name" /></p>
  5
+<p><label for="id_comment">{% trans "Comment:" %}</label><br /><textarea name="comment" id="id_comment" rows="10" cols="60"></textarea></p>
6 6
 <input type="hidden" name="options" value="{{ options }}" />
7 7
 <input type="hidden" name="target" value="{{ target }}" />
8 8
 <input type="hidden" name="gonzo" value="{{ hash }}" />

0 notes on commit 2837455

Please sign in to comment.
Something went wrong with that request. Please try again.