comparison templates/classic/html/issue.item.html @ 2393:c2908812624a

i18n markup
author Alexander Smishlajev <a1s@users.sourceforge.net>
date Sun, 06 Jun 2004 12:59:15 +0000
parents 975500ced7fa
children 3b2dc471e4d2
comparison
equal deleted inserted replaced
2392:b0778b9e933c 2393:c2908812624a
1 <!-- dollarId: issue.item,v 1.4 2001/08/03 01:19:43 richard Exp dollar--> 1 <!-- dollarId: issue.item,v 1.4 2001/08/03 01:19:43 richard Exp dollar-->
2 <tal:block metal:use-macro="templates/page/macros/icing"> 2 <tal:block metal:use-macro="templates/page/macros/icing">
3 <title metal:fill-slot="head_title"> 3 <title metal:fill-slot="head_title">
4 <tal:x condition="context/id" 4 <tal:block condition="context/id" i18n:translate=""
5 replace="string:Issue ${context/id}: ${context/title}" /> 5 >Issue <span tal:replace="context/id" i18n:name="id"
6 <tal:x condition="not:context/id">New Issue</tal:x> 6 />: <span tal:replace="context/title" i18n:name="title"
7 - <tal:x replace="config/TRACKER_NAME" /> 7 /> - <span tal:replace="config/TRACKER_NAME" i18n:name="tracker"
8 </title> 8 /></tal:block>
9 <span metal:fill-slot="body_title" tal:omit-tag="python:1"> 9 <tal:block condition="not:context/id" i18n:translate=""
10 <tal:x tal:condition="not:context/id">New</tal:x> 10 >New Issue - <span tal:replace="config/TRACKER_NAME" i18n:name="tracker"
11 Issue<tal:x replace="context/id" /> 11 /></tal:block>
12 <tal:x tal:condition="context/is_edit_ok">Editing</tal:x> 12 </title>
13 </span> 13 <tal:block metal:fill-slot="body_title">
14 <span tal:condition="python: not (context.id or context.is_edit_ok())"
15 tal:omit-tag="python:1" i18n:translate="">New Issue</span>
16 <span tal:condition="python: not context.id and context.is_edit_ok()"
17 tal:omit-tag="python:1" i18n:translate="">New Issue Editing</span>
18 <span tal:condition="python: context.id and not context.is_edit_ok()"
19 tal:omit-tag="python:1" i18n:translate="">Issue<tal:x
20 replace="context/id" i18n:name="id" /></span>
21 <span tal:condition="python: context.id and context.is_edit_ok()"
22 tal:omit-tag="python:1" i18n:translate="">Issue<tal:x
23 replace="context/id" i18n:name="id" /> Editing</span>
24 </tal:block>
14 25
15 <td class="content" metal:fill-slot="content"> 26 <td class="content" metal:fill-slot="content">
16 27
17 <form method="POST" name="itemSynopsis" onSubmit="return submit_once()" 28 <form method="POST" name="itemSynopsis" onSubmit="return submit_once()"
18 enctype="multipart/form-data" tal:attributes="action context/designator"> 29 enctype="multipart/form-data" tal:attributes="action context/designator">
22 <th class="required">Title</th> 33 <th class="required">Title</th>
23 <td colspan=3 tal:content="structure python:context.title.field(size=60)">title</td> 34 <td colspan=3 tal:content="structure python:context.title.field(size=60)">title</td>
24 </tr> 35 </tr>
25 36
26 <tr> 37 <tr>
27 <th class="required">Priority</th> 38 <th class="required" i18n:translate="">Priority</th>
28 <td tal:content="structure context/priority/menu">priority</td> 39 <td tal:content="structure context/priority/menu">priority</td>
29 <th>Status</th> 40 <th i18n:translate="">Status</th>
30 <td tal:content="structure context/status/menu">status</td> 41 <td tal:content="structure context/status/menu">status</td>
31 </tr> 42 </tr>
32 43
33 <tr> 44 <tr>
34 <th>Superseder</th> 45 <th i18n:translate="">Superseder</th>
35 <td> 46 <td>
36 <span tal:replace="structure python:context.superseder.field(showid=1, size=20)" /> 47 <span tal:replace="structure python:context.superseder.field(showid=1, size=20)" />
37 <span tal:replace="structure python:db.issue.classhelp('id,title', property='superseder')" /> 48 <span tal:replace="structure python:db.issue.classhelp('id,title', property='superseder')" />
38 <span tal:condition="context/superseder" tal:repeat="sup context/superseder"> 49 <span tal:condition="context/superseder" tal:repeat="sup context/superseder">
39 <br>View: <a tal:attributes="href string:issue${sup/id}" 50 <br><span i18n:translate="">View: <a i18n:name="link" tal:content="sup/id"
40 tal:content="sup/id"></a> 51 tal:attributes="href string:issue${sup/id}"></a></span>
41 </span> 52 </span>
42 </td> 53 </td>
43 <th>Nosy List</th> 54 <th i18n:translate="">Nosy List</th>
44 <td> 55 <td>
45 <span tal:replace="structure context/nosy/field" /> 56 <span tal:replace="structure context/nosy/field" />
46 <span tal:replace="structure 57 <span tal:replace="structure
47 python:db.user.classhelp('username,realname,address', property='nosy', width='600')" /><br> 58 python:db.user.classhelp('username,realname,address', property='nosy', width='600')" /><br>
48 </td> 59 </td>
49 </tr> 60 </tr>
50 61
51 <tr> 62 <tr>
52 <th>Assigned To</th> 63 <th i18n:translate="">Assigned To</th>
53 <td tal:content="structure context/assignedto/menu">assignedto menu</td> 64 <td tal:content="structure context/assignedto/menu">assignedto menu</td>
54 <th>Topics</th> 65 <th i18n:translate="">Topics</th>
55 <td> 66 <td>
56 <span tal:replace="structure context/topic/field" /> 67 <span tal:replace="structure context/topic/field" />
57 <span tal:replace="structure python:db.keyword.classhelp(property='topic')" /> 68 <span tal:replace="structure python:db.keyword.classhelp(property='topic')" />
58 </td> 69 </td>
59 </tr> 70 </tr>
60 71
61 <tr tal:condition="context/is_edit_ok"> 72 <tr tal:condition="context/is_edit_ok">
62 <th>Change Note</th> 73 <th i18n:translate="">Change Note</th>
63 <td colspan=3> 74 <td colspan=3>
64 <textarea tal:content="request/form/@note/value | default" 75 <textarea tal:content="request/form/@note/value | default"
65 name="@note" wrap="hard" rows="5" cols="80"></textarea> 76 name="@note" wrap="hard" rows="5" cols="80"></textarea>
66 </td> 77 </td>
67 </tr> 78 </tr>
68 79
69 <tr tal:condition="context/is_edit_ok"> 80 <tr tal:condition="context/is_edit_ok">
70 <th>File</th> 81 <th i18n:translate="">File</th>
71 <td colspan=3><input type="file" name="@file" size="40"></td> 82 <td colspan=3><input type="file" name="@file" size="40"></td>
72 </tr> 83 </tr>
73 84
74 <tr tal:condition="context/is_edit_ok"> 85 <tr tal:condition="context/is_edit_ok">
75 <td> 86 <td>
84 95
85 </table> 96 </table>
86 97
87 </form> 98 </form>
88 99
89 <table class="form" tal:condition="not:context/id"> 100 <tal:block tal:condition="not:context/id" i18n:translate="">
101 <table class="form">
90 <tr> 102 <tr>
91 <td>Note:&nbsp;</td> 103 <td>Note:&nbsp;</td>
92 <th class="required">highlighted</th> 104 <th class="required">highlighted</th>
93 <td>&nbsp;fields are required.</td> 105 <td>&nbsp;fields are required.</td>
94 </tr> 106 </tr>
95 </table> 107 </table>
108 </tal:block>
96 109
97 <p tal:condition="context/id" tal:content="structure string:Created on 110 <p tal:condition="context/id" tal:content="structure string:Created on
98 <b>${context/creation}</b> by <b>${context/creator}</b>, last 111 <b>${context/creation}</b> by <b>${context/creator}</b>, last
99 changed <b>${context/activity}</b> by <b>${context/actor}</b>.">activity info 112 changed <b>${context/activity}</b> by <b>${context/actor}</b>.">activity info
100 </p> 113 </p>
101 114
102 <table class="files" tal:condition="context/files"> 115 <table class="files" tal:condition="context/files">
103 <tr><th colspan="5" class="header">Files</th></tr> 116 <tr><th colspan="5" class="header" i18n:translate="">Files</th></tr>
104 <tr><th>File name</th><th>Uploaded</th><th>Type</th><th>Edit</th> 117 <tr>
105 <th>Remove</th></tr> 118 <th i18n:translate="">File name</th>
119 <th i18n:translate="">Uploaded</th>
120 <th i18n:translate="">Type</th>
121 <th i18n:translate="">Edit</th>
122 <th i18n:translate="">Remove</th>
123 </tr>
106 <tr tal:repeat="file context/files"> 124 <tr tal:repeat="file context/files">
107 <td> 125 <td>
108 <a tal:attributes="href file/download_url" 126 <a tal:attributes="href file/download_url"
109 tal:content="file/name">dld link</a> 127 tal:content="file/name">dld link</a>
110 </td> 128 </td>
126 </td> 144 </td>
127 </tr> 145 </tr>
128 </table> 146 </table>
129 147
130 <table class="messages" tal:condition="context/messages"> 148 <table class="messages" tal:condition="context/messages">
131 <tr><th colspan="4" class="header">Messages</th></tr> 149 <tr><th colspan="4" class="header" i18n:translate="">Messages</th></tr>
132 <tal:block tal:repeat="msg context/messages/reverse"> 150 <tal:block tal:repeat="msg context/messages/reverse">
133 <tr> 151 <tr>
134 <th><a tal:attributes="href string:msg${msg/id}" 152 <th><a tal:attributes="href string:msg${msg/id}"
135 tal:content="string:msg${msg/id} (view)"></a></th> 153 tal:content="string:msg${msg/id} (view)"></a></th>
136 <th tal:content="string:Author: ${msg/author}">author</th> 154 <th tal:content="string:Author: ${msg/author}">author</th>

Roundup Issue Tracker: http://roundup-tracker.org/