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