paul@0 | 1 | <!-- dollarId: issue.item,v 1.4 2001/08/03 01:19:43 richard Exp dollar--> |
paul@0 | 2 | <tal:block metal:use-macro="templates/page/macros/icing"> |
paul@0 | 3 | <title metal:fill-slot="head_title"> |
paul@0 | 4 | <tal:block condition="context/id" i18n:translate="" |
paul@0 | 5 | >Issue <tal:x tal:content="context/id" i18n:name="id" |
paul@0 | 6 | />: <tal:x content="context/title" i18n:name="title" |
paul@0 | 7 | /> - <tal:x content="config/TRACKER_NAME" i18n:name="tracker" |
paul@0 | 8 | /></tal:block> |
paul@0 | 9 | <tal:block condition="not:context/id" i18n:translate="" |
paul@0 | 10 | >New Issue - <span tal:replace="config/TRACKER_NAME" i18n:name="tracker" |
paul@0 | 11 | /></tal:block> |
paul@0 | 12 | </title> |
paul@0 | 13 | <tal:block metal:fill-slot="body_title"> |
paul@0 | 14 | <span tal:condition="python: not (context.id or context.is_edit_ok())" |
paul@0 | 15 | tal:omit-tag="python:1" i18n:translate="">New Issue</span> |
paul@0 | 16 | <span tal:condition="python: not context.id and context.is_edit_ok()" |
paul@0 | 17 | tal:omit-tag="python:1" i18n:translate="">New Issue Editing</span> |
paul@0 | 18 | <span tal:condition="python: context.id and not context.is_edit_ok()" |
paul@0 | 19 | tal:omit-tag="python:1" i18n:translate="">Issue<tal:x |
paul@0 | 20 | replace="context/id" i18n:name="id" /></span> |
paul@0 | 21 | <span tal:condition="python: context.id and context.is_edit_ok()" |
paul@0 | 22 | tal:omit-tag="python:1" i18n:translate="">Issue<tal:x |
paul@0 | 23 | replace="context/id" i18n:name="id" /> Editing</span> |
paul@0 | 24 | </tal:block> |
paul@0 | 25 | |
paul@0 | 26 | <td class="content" metal:fill-slot="content"> |
paul@0 | 27 | |
paul@0 | 28 | <p tal:condition="python:not (context.is_view_ok() |
paul@0 | 29 | or request.user.hasRole('Anonymous'))" i18n:translate=""> |
paul@0 | 30 | You are not allowed to view this page.</p> |
paul@0 | 31 | |
paul@0 | 32 | <p tal:condition="python:not context.is_view_ok() |
paul@0 | 33 | and request.user.hasRole('Anonymous')" i18n:translate=""> |
paul@0 | 34 | Please login with your username and password.</p> |
paul@0 | 35 | |
paul@0 | 36 | <div tal:condition="context/is_view_ok"> |
paul@0 | 37 | |
paul@0 | 38 | <form method="POST" name="itemSynopsis" |
paul@0 | 39 | onSubmit="return submit_once()" enctype="multipart/form-data" |
paul@0 | 40 | tal:attributes="action context/designator"> |
paul@0 | 41 | |
paul@0 | 42 | <table class="form"> |
paul@0 | 43 | <tr> |
paul@0 | 44 | <th class="required" i18n:translate="">Title</th> |
paul@0 | 45 | <td colspan=3 tal:content="structure python:context.title.field(size=60)">title</td> |
paul@0 | 46 | </tr> |
paul@0 | 47 | |
paul@0 | 48 | <tr> |
paul@0 | 49 | <th class="required" i18n:translate="">Priority</th> |
paul@0 | 50 | <td tal:content="structure context/priority/menu">priority</td> |
paul@0 | 51 | <th i18n:translate="">Status</th> |
paul@0 | 52 | <td tal:content="structure context/status/menu">status</td> |
paul@0 | 53 | </tr> |
paul@0 | 54 | |
paul@0 | 55 | <tr> |
paul@0 | 56 | <th i18n:translate="">Superseder</th> |
paul@0 | 57 | <td> |
paul@0 | 58 | <span tal:replace="structure python:context.superseder.field(showid=1, size=20)" /> |
paul@0 | 59 | <span tal:condition="context/is_edit_ok" tal:replace="structure python:db.issue.classhelp('id,title', property='superseder')" /> |
paul@0 | 60 | <span tal:condition="context/superseder"> |
paul@0 | 61 | <br><span i18n:translate="">View:</span> |
paul@0 | 62 | <a tal:repeat="sup context/superseder" |
paul@0 | 63 | tal:content="python:sup['id'] + ', '*(not repeat['sup'].end)" |
paul@0 | 64 | tal:attributes="href string:issue${sup/id}"></a> |
paul@0 | 65 | </span> |
paul@0 | 66 | </td> |
paul@0 | 67 | <th i18n:translate="">Nosy List</th> |
paul@0 | 68 | <td> |
paul@0 | 69 | <span tal:replace="structure context/nosy/field" /> |
paul@0 | 70 | <span tal:condition="context/is_edit_ok" tal:replace="structure |
paul@0 | 71 | python:db.user.classhelp('username,realname,address', property='nosy', width='600')" /><br> |
paul@0 | 72 | </td> |
paul@0 | 73 | </tr> |
paul@0 | 74 | |
paul@0 | 75 | <tr> |
paul@0 | 76 | <th i18n:translate="">Assigned To</th> |
paul@0 | 77 | <td tal:content="structure context/assignedto/menu">assignedto menu</td> |
paul@0 | 78 | <th i18n:translate="">Keywords</th> |
paul@0 | 79 | <td> |
paul@0 | 80 | <span tal:replace="structure context/keyword/field" /> |
paul@0 | 81 | <span tal:condition="context/is_edit_ok" tal:replace="structure python:db.keyword.classhelp(property='keyword')" /> |
paul@0 | 82 | </td> |
paul@0 | 83 | </tr> |
paul@0 | 84 | |
paul@0 | 85 | <tr tal:condition="context/is_edit_ok"> |
paul@0 | 86 | <th i18n:translate="">Change Note</th> |
paul@0 | 87 | <td colspan=3> |
paul@0 | 88 | <textarea tal:content="request/form/@note/value | default" |
paul@0 | 89 | name="@note" wrap="hard" rows="5" cols="80"></textarea> |
paul@0 | 90 | </td> |
paul@0 | 91 | </tr> |
paul@0 | 92 | |
paul@0 | 93 | <tr tal:condition="context/is_edit_ok"> |
paul@0 | 94 | <th i18n:translate="">File</th> |
paul@0 | 95 | <td colspan=3><input type="file" name="@file" size="40"></td> |
paul@0 | 96 | </tr> |
paul@0 | 97 | |
paul@0 | 98 | <tr tal:condition="context/is_edit_ok"> |
paul@0 | 99 | <td> |
paul@0 | 100 | |
paul@0 | 101 | <input type="hidden" name="@template" value="item"> |
paul@0 | 102 | <input type="hidden" name="@required" value="title,priority"> |
paul@0 | 103 | </td> |
paul@0 | 104 | <td colspan=3> |
paul@0 | 105 | <span tal:replace="structure context/submit">submit button</span> |
paul@0 | 106 | <a tal:condition="context/id" tal:attributes="href context/copy_url" |
paul@0 | 107 | i18n:translate="">Make a copy</a> |
paul@0 | 108 | </td> |
paul@0 | 109 | </tr> |
paul@0 | 110 | |
paul@0 | 111 | </table> |
paul@0 | 112 | </form> |
paul@0 | 113 | |
paul@0 | 114 | <tal:block tal:condition="not:context/id" i18n:translate=""> |
paul@0 | 115 | <table class="form"> |
paul@0 | 116 | <tr> |
paul@0 | 117 | <td>Note: </td> |
paul@0 | 118 | <th class="required">highlighted</th> |
paul@0 | 119 | <td> fields are required.</td> |
paul@0 | 120 | </tr> |
paul@0 | 121 | </table> |
paul@0 | 122 | </tal:block> |
paul@0 | 123 | |
paul@0 | 124 | <p tal:condition="context/id" i18n:translate=""> |
paul@0 | 125 | Created on <b tal:content="context/creation" i18n:name="creation" /> |
paul@0 | 126 | by <b tal:content="context/creator" i18n:name="creator" />, |
paul@0 | 127 | last changed <b content="context/activity" i18n:name="activity" /> |
paul@0 | 128 | by <b tal:content="context/actor" i18n:name="actor" />. |
paul@0 | 129 | </p> |
paul@0 | 130 | |
paul@0 | 131 | <table class="files" tal:condition="context/files"> |
paul@0 | 132 | <tr><th colspan="5" class="header" i18n:translate="">Files</th></tr> |
paul@0 | 133 | <tr> |
paul@0 | 134 | <th i18n:translate="">File name</th> |
paul@0 | 135 | <th i18n:translate="">Uploaded</th> |
paul@0 | 136 | <th i18n:translate="">Type</th> |
paul@0 | 137 | <th i18n:translate="">Edit</th> |
paul@0 | 138 | <th i18n:translate="">Remove</th> |
paul@0 | 139 | </tr> |
paul@0 | 140 | <tr tal:repeat="file context/files"> |
paul@0 | 141 | <td> |
paul@0 | 142 | <a tal:attributes="href file/download_url" |
paul@0 | 143 | tal:content="file/name">dld link</a> |
paul@0 | 144 | </td> |
paul@0 | 145 | <td> |
paul@0 | 146 | <span tal:content="file/creator">creator's name</span>, |
paul@0 | 147 | <span tal:content="file/creation">creation date</span> |
paul@0 | 148 | </td> |
paul@0 | 149 | <td tal:content="file/type" /> |
paul@0 | 150 | <td><a tal:condition="file/is_edit_ok" |
paul@0 | 151 | tal:attributes="href string:file${file/id}">edit</a> |
paul@0 | 152 | </td> |
paul@0 | 153 | <td> |
paul@0 | 154 | <form style="padding:0" method="POST" tal:condition="context/is_edit_ok" |
paul@0 | 155 | tal:attributes="action string:issue${context/id}"> |
paul@0 | 156 | <input type="hidden" name="@remove@files" tal:attributes="value file/id"> |
paul@0 | 157 | <input type="hidden" name="@action" value="edit"> |
paul@0 | 158 | <input type="submit" value="remove" i18n:attributes="value"> |
paul@0 | 159 | </form> |
paul@0 | 160 | </td> |
paul@0 | 161 | </tr> |
paul@0 | 162 | </table> |
paul@0 | 163 | |
paul@0 | 164 | <table class="messages" tal:condition="context/messages"> |
paul@0 | 165 | <tr><th colspan="4" class="header" i18n:translate="">Messages</th></tr> |
paul@0 | 166 | <tal:block tal:repeat="msg context/messages/reverse"> |
paul@0 | 167 | <tr> |
paul@0 | 168 | <th><a tal:attributes="href string:msg${msg/id}" |
paul@0 | 169 | i18n:translate="">msg<tal:x replace="msg/id" i18n:name="id" /> (view)</a></th> |
paul@0 | 170 | <th i18n:translate="">Author: <tal:x replace="msg/author" |
paul@0 | 171 | i18n:name="author" /></th> |
paul@0 | 172 | <th i18n:translate="">Date: <tal:x replace="msg/date" |
paul@0 | 173 | i18n:name="date" /></th> |
paul@0 | 174 | <th> |
paul@0 | 175 | <form style="padding:0" method="POST" tal:condition="context/is_edit_ok" |
paul@0 | 176 | tal:attributes="action string:issue${context/id}"> |
paul@0 | 177 | <input type="hidden" name="@remove@messages" tal:attributes="value msg/id"> |
paul@0 | 178 | <input type="hidden" name="@action" value="edit"> |
paul@0 | 179 | <input type="submit" value="remove" i18n:attributes="value"> |
paul@0 | 180 | </form> |
paul@0 | 181 | </th> |
paul@0 | 182 | </tr> |
paul@0 | 183 | <tr> |
paul@0 | 184 | <td colspan="4" class="content"> |
paul@0 | 185 | <pre tal:content="structure msg/content/hyperlinked">content</pre> |
paul@0 | 186 | </td> |
paul@0 | 187 | </tr> |
paul@0 | 188 | </tal:block> |
paul@0 | 189 | </table> |
paul@0 | 190 | |
paul@0 | 191 | <tal:block tal:condition="context/id" tal:replace="structure context/history" /> |
paul@0 | 192 | |
paul@0 | 193 | </div> |
paul@0 | 194 | |
paul@0 | 195 | </td> |
paul@0 | 196 | |
paul@0 | 197 | </tal:block> |