paul@0 | 1 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
paul@0 | 2 | <html tal:define="property request/form/property/value" > |
paul@0 | 3 | <head> |
paul@0 | 4 | <link rel="stylesheet" type="text/css" href="@@file/style.css" /> |
paul@0 | 5 | <meta http-equiv="Content-Type" |
paul@0 | 6 | tal:attributes="content string:text/html;; charset=${request/client/charset}" /> |
paul@0 | 7 | <tal:block tal:condition="python:request.form.has_key('property')"> |
paul@0 | 8 | <title i18n:translate=""><tal:x i18n:name="property" |
paul@0 | 9 | tal:content="property" i18n:translate="" /> help - <span i18n:name="tracker" |
paul@0 | 10 | tal:replace="config/TRACKER_NAME" /></title> |
paul@0 | 11 | <script language="Javascript" type="text/javascript" |
paul@0 | 12 | tal:content="structure string: |
paul@0 | 13 | // this is the name of the field in the original form that we're working on |
paul@0 | 14 | form = window.opener.document.${request/form/form/value}; |
paul@0 | 15 | field = '${request/form/property/value}';"> |
paul@0 | 16 | </script> |
paul@0 | 17 | <script src="@@file/help_controls.js" type="text/javascript"><!-- |
paul@0 | 18 | //--></script> |
paul@0 | 19 | </tal:block> |
paul@0 | 20 | </head> |
paul@0 | 21 | <body class="body" onload="resetList();"> |
paul@0 | 22 | <form name="frm_help" tal:attributes="action request/base" |
paul@0 | 23 | tal:define="batch request/batch; |
paul@0 | 24 | props python:request.form['properties'].value.split(',')"> |
paul@0 | 25 | |
paul@0 | 26 | <div id="classhelp-controls"> |
paul@0 | 27 | <!--input type="button" name="btn_clear" |
paul@0 | 28 | value="Clear" onClick="clearList()"/ --> |
paul@0 | 29 | <input type="text" name="text_preview" size="24" class="preview" |
paul@0 | 30 | onchange="reviseList(this.value);"/> |
paul@0 | 31 | <input type="button" name="btn_reset" |
paul@0 | 32 | value=" Cancel " onclick="resetList(); window.close();" |
paul@0 | 33 | i18n:attributes="value" /> |
paul@0 | 34 | <input type="button" name="btn_apply" class="apply" |
paul@0 | 35 | value=" Apply " onclick="updateList(); window.close();" |
paul@0 | 36 | i18n:attributes="value" /> |
paul@0 | 37 | </div> |
paul@0 | 38 | <table width="100%"> |
paul@0 | 39 | <tr class="navigation"> |
paul@0 | 40 | <th> |
paul@0 | 41 | <a tal:define="prev batch/previous" tal:condition="prev" |
paul@0 | 42 | tal:attributes="href python:request.indexargs_url(request.classname, |
paul@0 | 43 | {'@template':'help', 'property': request.form['property'].value, |
paul@0 | 44 | 'properties': request.form['properties'].value, |
paul@0 | 45 | 'form': request.form['form'].value, |
paul@0 | 46 | 'type': request.form['type'].value, |
paul@0 | 47 | '@startwith':prev.first, '@pagesize':prev.size})" |
paul@0 | 48 | i18n:translate="" ><< previous</a> |
paul@0 | 49 | |
paul@0 | 50 | </th> |
paul@0 | 51 | <th i18n:translate=""><span tal:replace="batch/start" i18n:name="start" |
paul@0 | 52 | />..<span tal:replace="python: batch.start + batch.length -1" i18n:name="end" |
paul@0 | 53 | /> out of <span tal:replace="batch/sequence_length" i18n:name="total" |
paul@0 | 54 | /> |
paul@0 | 55 | </th> |
paul@0 | 56 | <th> |
paul@0 | 57 | <a tal:define="next batch/next" tal:condition="next" |
paul@0 | 58 | tal:attributes="href python:request.indexargs_url(request.classname, |
paul@0 | 59 | {'@template':'help', 'property': request.form['property'].value, |
paul@0 | 60 | 'properties': request.form['properties'].value, |
paul@0 | 61 | 'form': request.form['form'].value, |
paul@0 | 62 | 'type': request.form['type'].value, |
paul@0 | 63 | '@startwith':next.first, '@pagesize':next.size})" |
paul@0 | 64 | i18n:translate="" >next >></a> |
paul@0 | 65 | |
paul@0 | 66 | </th> |
paul@0 | 67 | </tr> |
paul@0 | 68 | </table> |
paul@0 | 69 | |
paul@0 | 70 | <table class="classhelp"> |
paul@0 | 71 | <tr> |
paul@0 | 72 | <th> <b>x</b></th> |
paul@0 | 73 | <th tal:repeat="prop props" tal:content="prop" i18n:translate=""></th> |
paul@0 | 74 | </tr> |
paul@0 | 75 | <tr tal:repeat="item batch"> |
paul@0 | 76 | <tal:block tal:define="attr python:item[props[0]]" > |
paul@0 | 77 | <td> |
paul@0 | 78 | <input name="check" |
paul@0 | 79 | onclick="updatePreview();" |
paul@0 | 80 | tal:attributes="type python:request.form['type'].value; |
paul@0 | 81 | value attr; id string:id_$attr" /> |
paul@0 | 82 | </td> |
paul@0 | 83 | <td tal:repeat="prop props"> |
paul@0 | 84 | <label class="classhelp-label" |
paul@0 | 85 | tal:attributes="for string:id_$attr" |
paul@0 | 86 | tal:content="python:item[prop]"></label> |
paul@0 | 87 | </td> |
paul@0 | 88 | </tal:block> |
paul@0 | 89 | </tr> |
paul@0 | 90 | <tr> |
paul@0 | 91 | <th> <b>x</b></th> |
paul@0 | 92 | <th tal:repeat="prop props" tal:content="prop" i18n:translate=""></th> |
paul@0 | 93 | </tr> |
paul@0 | 94 | </table> |
paul@0 | 95 | |
paul@0 | 96 | </form> |
paul@0 | 97 | </body> |
paul@0 | 98 | </html> |