Skip to content

Commit ef5fc86

Browse files
author
Alexander Smishlajev
committed
copied from classic template set
1 parent 49ca888 commit ef5fc86

File tree

4 files changed

+58
-42
lines changed

4 files changed

+58
-42
lines changed
Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,16 @@
11
<tal:block metal:use-macro="templates/page/macros/icing">
2-
<title metal:fill-slot="head_title"
3-
tal:content="python:context._classname.capitalize()+' Edit Collision'"></title>
4-
<span metal:fill-slot="body_title" tal:omit-tag="python:1"
5-
tal:content="python:context._classname.capitalize()+' Edit Collision'"></span>
6-
<td class="content" metal:fill-slot="content" i18n:translate="
7-
There has been a collision. Another user updated this node
8-
while you were editing. Please <a href='${context}'>reload</a>
9-
the node and review your edits.
10-
"><span tal:replace="context/designator" i18n:name="context" />
11-
</td>
2+
<title metal:fill-slot="head_title" i18n:translate=""
3+
><span tal:replace="python:context._classname.capitalize()"
4+
i18n:name="class" /> Edit Collision - <span i18n:name="tracker"
5+
tal:replace="config/TRACKER_NAME" /></title>
6+
<tal:block metal:fill-slot="body_title" i18n:translate=""
7+
><span tal:replace="python:context._classname.capitalize()"
8+
i18n:name="class" /> Edit Collision</tal:block>
9+
10+
<td class="content" metal:fill-slot="content" i18n:translate="
11+
There has been a collision. Another user updated this node
12+
while you were editing. Please <a href='${context}'>reload</a>
13+
the node and review your edits.
14+
"><span tal:replace="context/designator" i18n:name="context" />
15+
</td>
1216
</tal:block>

templates/minimal/html/_generic.help.html

Lines changed: 26 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2-
<html tal:define="property request/form/property/value">
2+
<html tal:define="property request/form/property/value" >
33
<head>
44
<link rel="stylesheet" type="text/css" href="@@file/style.css" />
55
<meta http-equiv="Content-Type"
66
tal:attributes="content string:text/html;; charset=${request/client/charset}" />
77
<tal:block tal:condition="python:request.form.has_key('property')">
88
<title i18n:translate=""><span i18n:name="property"
9-
tal:replace="property" /> help</title>
9+
tal:replace="property" /> help - <span i18n:name="tracker"
10+
tal:replace="config/TRACKER_NAME" /></title>
1011
<script language="Javascript" type="text/javascript"
1112
tal:content="structure string:
1213
// this is the name of the field in the original form that we're working on
@@ -16,21 +17,23 @@
1617
//--></script>
1718
</tal:block>
1819
</head>
19-
<body class="body" marginwidth="0" marginheight="0" onload="resetList();">
20-
<form name="frm_help" action=""
20+
<body class="body" onload="resetList();">
21+
<form name="frm_help" tal:attributes="action request/base"
2122
tal:define="start python:int(request.form['@startwith'].value);
2223
batch python:utils.Batch(context.list(), 500, start);
2324
props python:request.form['properties'].value.split(',')">
2425

25-
<div id="classhelp-controls" tal:condition="python:start==0">
26+
<div id="classhelp-controls">
2627
<!--input type="button" name="btn_clear"
2728
value="Clear" onClick="clearList()"/ -->
2829
<input type="text" name="text_preview" size="24" class="preview"
2930
onchange="reviseList(this.value);"/>
3031
<input type="button" name="btn_reset"
31-
value=" Cancel " onclick="resetList(); window.close();"/>
32+
value=" Cancel " onclick="resetList(); window.close();"
33+
i18n:attributes="value" />
3234
<input type="button" name="btn_apply" class="apply"
33-
value=" Apply " onclick="updateList(); window.close();"/>
35+
value=" Apply " onclick="updateList(); window.close();"
36+
i18n:attributes="value" />
3437
</div>
3538

3639
<table class="classhelp">
@@ -39,18 +42,18 @@
3942
<th tal:repeat="prop props" tal:content="prop"></th>
4043
</tr>
4144
<tr tal:repeat="item batch">
42-
<td>
43-
<input type="checkbox" name="check"
44-
onclick="updatePreview();"
45-
tal:condition="python:start==0"
46-
tal:define="attr python:item[props[0]]"
47-
tal:attributes="value attr; id attr" />
48-
</td>
49-
<td tal:repeat="prop props">
50-
<label class="classhelp-label"
51-
tal:attributes="for python:item[props[0]]"
52-
tal:content="structure python:item[prop]"></label>
53-
</td>
45+
<tal:block tal:define="attr python:item[props[0]]">
46+
<td>
47+
<input type="checkbox" name="check"
48+
onclick="updatePreview();"
49+
tal:attributes="value attr; id string:id_$attr" />
50+
</td>
51+
<td tal:repeat="prop props">
52+
<label class="classhelp-label"
53+
tal:attributes="for string:id_$attr"
54+
tal:content="structure python:item[prop]"></label>
55+
</td>
56+
</tal:block>
5457
</tr>
5558
<tr>
5659
<th>&nbsp;<b>x</b></th>
@@ -61,8 +64,8 @@
6164
<tr class="navigation">
6265
<th>
6366
<a tal:define="prev batch/previous" tal:condition="prev"
64-
tal:attributes="href string:${request/classname}?@template=help&@startwith=${prev/first}&properties=${request/form/properties/value}"
65-
i18n:translate="">&lt;&lt; previous</a>
67+
tal:attributes="href string:${request/classname}?@template=help&@startwith=${prev/first}&property=${property}&properties=${request/form/properties/value}"
68+
i18n:translate="">&lt;&lt; previous</a>
6669
&nbsp;
6770
</th>
6871
<th i18n:translate=""><span tal:replace="batch/start" i18n:name="start"
@@ -71,8 +74,8 @@
7174
/></th>
7275
<th>
7376
<a tal:define="next batch/next" tal:condition="next"
74-
tal:attributes="href string:${request/classname}?@template=help&@startwith=${next/first}&properties=${request/form/properties/value}"
75-
i18n:translate="">next &gt;&gt;</a>
77+
tal:attributes="href string:${request/classname}?@template=help&@startwith=${next/first}&property=${property}&properties=${request/form/properties/value}"
78+
i18n:translate="">next &gt;&gt;</a>
7679
&nbsp;
7780
</th>
7881
</tr>

templates/minimal/html/_generic.index.html

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
11
<!-- dollarId: issue.index,v 1.2 2001/07/29 04:07:37 richard Exp dollar-->
22

33
<tal:block metal:use-macro="templates/page/macros/icing">
4-
<title metal:fill-slot="head_title"
5-
tal:content="python:context._classname.capitalize()+' editing'"></title>
6-
<span metal:fill-slot="body_title" tal:omit-tag="python:1"
7-
tal:content="python:context._classname.capitalize()+' editing'"></span>
4+
<title metal:fill-slot="head_title" i18n:translate=""
5+
><span tal:replace="python:context._classname.capitalize()"
6+
i18n:name="class" /> editing - <span i18n:name="tracker"
7+
tal:replace="config/TRACKER_NAME" /></title>
8+
<tal:block metal:fill-slot="body_title" i18n:translate=""
9+
><span tal:replace="python:context._classname.capitalize()"
10+
i18n:name="class" /> editing</tal:block>
11+
812
<td class="content" metal:fill-slot="content">
913

1014
<span tal:condition="python:not (context.is_view_ok() or context.is_edit_ok())"

templates/minimal/html/_generic.item.html

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,21 @@
11
<tal:block metal:use-macro="templates/page/macros/icing">
2-
<title metal:fill-slot="head_title"
3-
tal:content="python:context._classname.capitalize()+' editing'"></title>
4-
<span metal:fill-slot="body_title" tal:omit-tag="python:1"
5-
tal:content="python:context._classname.capitalize()+' editing'"></span>
2+
<title metal:fill-slot="head_title" i18n:translate=""
3+
><span tal:replace="python:context._classname.capitalize()"
4+
i18n:name="class" /> editing - <span i18n:name="tracker"
5+
tal:replace="config/TRACKER_NAME" /></title>
6+
<tal:block metal:fill-slot="body_title" i18n:translate=""
7+
><span tal:replace="python:context._classname.capitalize()"
8+
i18n:name="class" /> editing</tal:block>
9+
610
<td class="content" metal:fill-slot="content">
711

812
<span tal:condition="python:not (context.is_view_ok() or context.is_edit_ok())"
913
tal:omit-tag="python:1" i18n:translate=""
1014
>You are not allowed to view this page.</span>
1115

1216
<form method="POST" onSubmit="return submit_once()"
13-
enctype="multipart/form-data" tal:condition="context/is_edit_ok">
17+
enctype="multipart/form-data" tal:condition="context/is_edit_ok"
18+
tal:attributes="action context/designator">
1419

1520
<input type="hidden" name="@template" value="item">
1621

0 commit comments

Comments
 (0)