Code

Add an id_ prefix to all id's: they can not start with a number in HTML4/XHTML1.
authorjlgijsbers <jlgijsbers@57a73879-2fb5-44c3-a270-3262357dd7e2>
Mon, 20 Oct 2003 20:09:15 +0000 (20:09 +0000)
committerjlgijsbers <jlgijsbers@57a73879-2fb5-44c3-a270-3262357dd7e2>
Mon, 20 Oct 2003 20:09:15 +0000 (20:09 +0000)
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@1922 57a73879-2fb5-44c3-a270-3262357dd7e2

templates/classic/html/_generic.help.html

index 4f9ae6c4bf67b4d8de3749dca1f3f401e9f07a7d..7c324f334f6fabef0f89d9499d04daea977c7725 100644 (file)
            <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>