Skip to content

Commit b557e66

Browse files
author
Alexander Smishlajev
committed
copied from classic template
1 parent fc218a9 commit b557e66

File tree

1 file changed

+29
-18
lines changed

1 file changed

+29
-18
lines changed

templates/minimal/html/_generic.help.html

Lines changed: 29 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,38 @@
11
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2-
<html>
2+
<html tal:define="property request/form/property/value" >
33
<head>
44
<link rel="stylesheet" type="text/css" href="@@file/style.css" />
5-
<meta http-equiv="Content-Type" content="text/html; charset=utf-8;" />
5+
<meta http-equiv="Content-Type"
6+
tal:attributes="content string:text/html;; charset=${request/client/charset}" />
67
<tal:block tal:condition="python:request.form.has_key('property')">
7-
<title tal:content="string:${request/form/property/value} help">Property</title>
8-
<script language="Javascript" type="text/javascript"
8+
<title i18n:translate=""><tal:x i18n:name="property"
9+
tal:content="property" i18n:translate="" /> help - <span i18n:name="tracker"
10+
tal:replace="config/TRACKER_NAME" /></title>
11+
<script language="Javascript" type="text/javascript"
912
tal:content="structure string:
1013
// this is the name of the field in the original form that we're working on
11-
form = window.opener.document.${request/form/form/value};">
14+
form = window.opener.document.${request/form/form/value};" >
1215
</script>
13-
<script src="@@file/help_controls.js" type="text/javascript"><!--
16+
<script src="@@file/help_controls.js" type="text/javascript"><!--
1417
//--></script>
1518
</tal:block>
1619
</head>
1720
<body class="body" onload="resetList();">
1821
<form name="frm_help" tal:attributes="action request/base"
1922
tal:define="batch request/batch;
2023
props python:request.form['properties'].value.split(',')">
21-
24+
2225
<div id="classhelp-controls">
23-
<!--input type="button" name="btn_clear"
26+
<!--input type="button" name="btn_clear"
2427
value="Clear" onClick="clearList()"/ -->
2528
<input type="text" name="text_preview" size="24" class="preview"
2629
onchange="reviseList(this.value);"/>
27-
<input type="button" name="btn_reset"
28-
value=" Cancel " onclick="resetList(); window.close();"/>
30+
<input type="button" name="btn_reset"
31+
value=" Cancel " onclick="resetList(); window.close();"
32+
i18n:attributes="value" />
2933
<input type="button" name="btn_apply" class="apply"
30-
value=" Apply " onclick="updateList(); window.close();"/>
34+
value=" Apply " onclick="updateList(); window.close();"
35+
i18n:attributes="value" />
3136
</div>
3237
<table width="100%">
3338
<tr class="navigation">
@@ -36,17 +41,23 @@
3641
tal:attributes="href python:request.indexargs_href(request.classname,
3742
{'@template':'help', 'property': request.form['property'].value,
3843
'properties': request.form['properties'].value,
39-
'@startwith':prev.first, '@pagesize':prev.size})">&lt;&lt; previous</a>
44+
'@startwith':prev.first, '@pagesize':prev.size})"
45+
i18n:translate="" >&lt;&lt; previous</a>
46+
&nbsp;
47+
</th>
48+
<th i18n:translate=""><span tal:replace="batch/start" i18n:name="start"
49+
/>..<span tal:replace="python: batch.start + batch.length -1" i18n:name="end"
50+
/> out of <span tal:replace="batch/sequence_length" i18n:name="total"
51+
/>
4052
&nbsp;
4153
</th>
42-
<th tal:content="python: '%d...%d out of %d'%(batch.start,
43-
batch.start+batch.length-1, batch.sequence_length)">current</th>
4454
<th>
4555
<a tal:define="next batch/next" tal:condition="next"
4656
tal:attributes="href python:request.indexargs_href(request.classname,
4757
{'@template':'help', 'property': request.form['property'].value,
4858
'properties': request.form['properties'].value,
49-
'@startwith':next.first, '@pagesize':next.size})">next &gt;&gt;</a>
59+
'@startwith':next.first, '@pagesize':next.size})"
60+
i18n:translate="" >next &gt;&gt;</a>
5061
&nbsp;
5162
</th>
5263
</tr>
@@ -55,12 +66,12 @@
5566
<table class="classhelp">
5667
<tr>
5768
<th>&nbsp;<b>x</b></th>
58-
<th tal:repeat="prop props" tal:content="prop"></th>
69+
<th tal:repeat="prop props" tal:content="prop" i18n:translate=""></th>
5970
</tr>
6071
<tr tal:repeat="item batch">
6172
<tal:block tal:define="attr python:item[props[0]]">
6273
<td>
63-
<input type="checkbox" name="check"
74+
<input type="checkbox" name="check"
6475
onclick="updatePreview();"
6576
tal:attributes="value attr; id string:id_$attr" />
6677
</td>
@@ -73,7 +84,7 @@
7384
</tr>
7485
<tr>
7586
<th>&nbsp;<b>x</b></th>
76-
<th tal:repeat="prop props" tal:content="prop"></th>
87+
<th tal:repeat="prop props" tal:content="prop" i18n:translate=""></th>
7788
</tr>
7889
</table>
7990

0 commit comments

Comments
 (0)