1 <!-- $Id: _generic.help-list.html,v 1.2 2008-03-01 08:18:07 richard Exp $ vim: sw=2 ts=8 et 2 --><html tal:define="vok context/is_view_ok"> 3 <head> 4 <title>Search result for user helper</title> 5 <link rel="stylesheet" type="text/css" href="@@file/style.css" /> 6 <script language="Javascript" type="text/javascript" 7 tal:content="structure string:<!-- 8 // this is the name of the field in the original form that we're working on 9 form = parent.opener.document.${request/form/form/value}; 10 field = '${request/form/property/value}'; 11 //-->"></script> 12 <script src="@@file/help_controls.js" type="text/javascript"></script> 13 <script type="text/javascript"><!-- 14 var text_field = parent.submit.document.frm_help.text_preview; 15 //--></script> 16 </head> 17 <body> 18 <pre tal:content="request/env/QUERY_STRING" tal:condition=false /> 19 20 <p tal:condition="not:vok" i18n:translate="">You are not 21 allowed to view this page.</p> 22 23 <tal:if condition="context/is_view_ok"> 24 <tal:def define="batch request/batch;"> 25 <form name=dummyform> 26 <table width="100%" 27 tal:define="template string:help-list" 28 metal:use-macro="templates/help/macros/batch_navi" 29 > 30 <tr class="navigation"> 31 <th> 32 <a href="#"><< previous</a> 33 </th> 34 <th i18n:translate="">1..25 out of 50 35 </th> 36 <th> 37 <a href="#">next >></a> 38 </th> 39 </tr> 40 </table> 41 42 <form name=dummyform> 43 <table class="classhelp" 44 tal:define=" 45 props python:request.form['properties'].value.split(','); 46 legend templates/help/macros/legend; 47 "><thead> 48 <tr metal:use-macro="legend"> 49 <th> <b>x</b></th> 50 <th tal:repeat="prop props" tal:content="prop" i18n:translate=""></th> 51 </tr> 52 </thead> 53 <tfoot tal:condition=true> 54 <tr metal:use-macro="legend" /> 55 </tfoot> 56 <tbody> 57 <tr tal:repeat="item batch"> 58 <tal:block tal:define="attr python:item[props[0]]" > 59 <td> 60 <input name="check" 61 onclick="switch_val(text_field, this);" type="checkbox" 62 tal:attributes="value attr; id string:id_$attr" /> 63 </td> 64 <td tal:repeat="prop props"> 65 <label class="classhelp-label" 66 tal:attributes="for string:id_$attr" 67 tal:content="python:item[prop]"></label> 68 </td> 69 </tal:block> 70 </tr> 71 </tbody> 72 </table> 73 </form> 74 </tal:def> 75 </tal:if> 76 77 <pre tal:content=request tal:condition=false /> 78 <script type="text/javascript"><!-- 79 parent.submit.document.frm_help.cb_listpresent.checked=true; 80 reviseList_framed(document.dummyform, text_field) 81 //--></script> 82 </body> 83 </html>