diff templates/classic/html/_generic.help.html @ 1852:b778e1768a05

Add an id_ prefix to all id's: they can not start with a number in HTML4/XHTML1.
author Johannes Gijsbers <jlgijsbers@users.sourceforge.net>
date Mon, 20 Oct 2003 20:09:15 +0000
parents 24819ee5dfbc
children 8b840f8626fb
line wrap: on
line diff
--- a/templates/classic/html/_generic.help.html	Fri Oct 17 01:53:11 2003 +0000
+++ b/templates/classic/html/_generic.help.html	Mon Oct 20 20:09:15 2003 +0000
@@ -37,18 +37,19 @@
            <th tal:repeat="prop props" tal:content="prop"></th>
        </tr>
        <tr tal:repeat="item batch">
-           <td>
-               <input type="checkbox" name="check" 
-               onclick="updatePreview();"
-               tal:condition="python:start==0"
-               tal:define="attr python:item[props[0]]"
-               tal:attributes="value attr; id attr" />
-           </td>
-           <td tal:repeat="prop props">
-               <label class="classhelp-label"
-                      tal:attributes="for python:item[props[0]]" 
-                      tal:content="structure python:item[prop]"></label>
-           </td>
+           <tal:block tal:define="attr python:item[props[0]]">
+             <td>
+                 <input type="checkbox" name="check" 
+                 onclick="updatePreview();"
+                 tal:condition="python:start==0"
+                 tal:attributes="value attr; id string:id_$attr" />
+             </td>
+             <td tal:repeat="prop props">
+                 <label class="classhelp-label"
+                        tal:attributes="for string:id_$attr"
+                        tal:content="structure python:item[prop]"></label>
+             </td>
+           </tal:block>
        </tr>
        <tr>
            <th>&nbsp;<b>x</b></th>

Roundup Issue Tracker: http://roundup-tracker.org/