prakashr85 / quizlink

Automatically exported from code.google.com/p/quizlink
0 stars 0 forks source link

Provide labels for radio button inputs #10

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
This patch allows one to click on the text instead of the radio button
itself.  

http://www.w3.org/TR/WCAG20-TECHS/H44.html

Index: templates/selectquizzes.html
===================================================================
--- templates/selectquizzes.html        (revision 34)
+++ templates/selectquizzes.html        (working copy)
@@ -20,7 +20,7 @@

                                        {% for quiz in quizzes %}
                                                <tr {% if
forloop.counter|divisibleby:2 %}class="evenrow"{% endif %}>
-                                               <td><input type="radio"
name="quiz" value="{{ quiz.key }}"> {{ quiz.title|escape }}</input></td>
+              <td><input type="radio" name="quiz" id="{{ quiz.key }}"
value="{{ quiz.key }}"><label for="{{ quiz.key }}"> {{ quiz.title|escape }}
</label></input></td>
                                                <td>{{
quiz.public|yesno:"Public,Private" }}</td>
                                                </tr>
                                        {% endfor %}
@@ -38,4 +38,4 @@
                        <br>
                </div>
        </body>
-</html>
\ No newline at end of file
+</html>

Original issue reported on code.google.com by briane...@gmail.com on 15 May 2009 at 6:45