Mercurial > p > roundup > code
comparison templates/classic/html/query.edit.html @ 2395:97f810f39d16
i18n markup
| author | Alexander Smishlajev <a1s@users.sourceforge.net> |
|---|---|
| date | Sun, 06 Jun 2004 13:21:39 +0000 |
| parents | 3b92a1b7a056 |
| children | 7fb8cfe3c737 |
comparison
equal
deleted
inserted
replaced
| 2394:29bfb67ba5ba | 2395:97f810f39d16 |
|---|---|
| 1 <!-- dollarId: user.item,v 1.7 2002/08/16 04:29:04 richard Exp dollar--> | 1 <!-- dollarId: user.item,v 1.7 2002/08/16 04:29:04 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" i18n:translate="" |
| 4 "Your Queries" Editing | 4 >"Your Queries" Editing - <span tal:replace="config/TRACKER_NAME" |
| 5 - <span tal:replace="config/TRACKER_NAME" /> | 5 i18n:name="tracker" /></title> |
| 6 </title> | 6 <span metal:fill-slot="body_title" tal:omit-tag="python:1" |
| 7 <span metal:fill-slot="body_title" tal:omit-tag="python:1"> | 7 i18n:translate="">"Your Queries" Editing</span> |
| 8 "Your Queries" Editing | |
| 9 </span> | |
| 10 | 8 |
| 11 <td class="content" metal:fill-slot="content"> | 9 <td class="content" metal:fill-slot="content"> |
| 12 | 10 |
| 13 <span tal:condition="not:context/is_edit_ok"> | 11 <span tal:condition="not:context/is_edit_ok" |
| 14 You are not allowed to edit queries. | 12 i18n:translate="">You are not allowed to edit queries.</span> |
| 15 </span> | |
| 16 | 13 |
| 17 <script language="javascript"> | 14 <script language="javascript"> |
| 18 // This exists solely because I can't figure how to get the & into an | 15 // This exists solely because I can't figure how to get the & into an |
| 19 // attributes TALES expression, and so it keeps getting quoted. | 16 // attributes TALES expression, and so it keeps getting quoted. |
| 20 function retire(qid) { | 17 function retire(qid) { |
| 26 enctype="multipart/form-data" tal:condition="context/is_edit_ok"> | 23 enctype="multipart/form-data" tal:condition="context/is_edit_ok"> |
| 27 | 24 |
| 28 <table class="list" width="100%" | 25 <table class="list" width="100%" |
| 29 tal:define="uid request/user/id; mine request/user/queries"> | 26 tal:define="uid request/user/id; mine request/user/queries"> |
| 30 | 27 |
| 31 <tr><th>Query</th> | 28 <tr><th i18n:translate="">Query</th> |
| 32 <th>Include in "Your Queries"</th> | 29 <th i18n:translate="">Include in "Your Queries"</th> |
| 33 <th>Edit</th> | 30 <th i18n:translate="">Edit</th> |
| 34 <th>Private to you?</th> | 31 <th i18n:translate="">Private to you?</th> |
| 35 <th> </th> | 32 <th> </th> |
| 36 </tr> | 33 </tr> |
| 37 | 34 |
| 38 <tr tal:repeat="query mine"> | 35 <tr tal:repeat="query mine"> |
| 39 <tal:block condition="query/is_retired"> | 36 <tal:block condition="query/is_retired"> |
| 42 tal:content="query/name">query</a></td> | 39 tal:content="query/name">query</a></td> |
| 43 | 40 |
| 44 <td metal:define-macro="include"> | 41 <td metal:define-macro="include"> |
| 45 <select tal:condition="python:query.id not in mine" | 42 <select tal:condition="python:query.id not in mine" |
| 46 tal:attributes="name string:user${uid}@add@queries"> | 43 tal:attributes="name string:user${uid}@add@queries"> |
| 47 <option value="">leave out</option> | 44 <option value="" i18n:translate="">leave out</option> |
| 48 <option tal:attributes="value query/id">include</option> | 45 <option tal:attributes="value query/id" i18n:translate="">include</option> |
| 49 </select> | 46 </select> |
| 50 <select tal:condition="python:query.id in mine" | 47 <select tal:condition="python:query.id in mine" |
| 51 tal:attributes="name string:user${uid}@remove@queries"> | 48 tal:attributes="name string:user${uid}@remove@queries"> |
| 52 <option value="">leave in</option> | 49 <option value="" i18n:translate="">leave in</option> |
| 53 <option tal:attributes="value query/id">remove</option> | 50 <option tal:attributes="value query/id" i18n:translate="">remove</option> |
| 54 </select> | 51 </select> |
| 55 </td> | 52 </td> |
| 56 | 53 |
| 57 <td colspan="3">[query is retired]</td> | 54 <td colspan="3" i18n:translate="">[query is retired]</td> |
| 58 | 55 |
| 59 <!-- <td> maybe offer "restore" some day </td> --> | 56 <!-- <td> maybe offer "restore" some day </td> --> |
| 60 </tal:block> | 57 </tal:block> |
| 61 </tr> | 58 </tr> |
| 62 | 59 |
| 65 <td><a tal:attributes="href string:${query/klass}?${query/url}" | 62 <td><a tal:attributes="href string:${query/klass}?${query/url}" |
| 66 tal:content="query/name">query</a></td> | 63 tal:content="query/name">query</a></td> |
| 67 | 64 |
| 68 <td metal:use-macro="template/macros/include" /> | 65 <td metal:use-macro="template/macros/include" /> |
| 69 | 66 |
| 70 <td><a tal:attributes="href string:query${query/id}">edit</a></td> | 67 <td><a tal:attributes="href string:query${query/id}" i18n:translate="">edit</a></td> |
| 71 | 68 |
| 72 <td> | 69 <td> |
| 73 <select tal:attributes="name string:query${query/id}@private_for"> | 70 <select tal:attributes="name string:query${query/id}@private_for"> |
| 74 <option tal:attributes="selected python:query.private_for == uid; | 71 <option tal:attributes="selected python:query.private_for == uid; |
| 75 value uid">yes</option> | 72 value uid" i18n:translate="">yes</option> |
| 76 <option tal:attributes="selected python:query.private_for == None" | 73 <option tal:attributes="selected python:query.private_for == None" |
| 77 value="-1">no</option> | 74 value="-1" i18n:translate="">no</option> |
| 78 </select> | 75 </select> |
| 79 </td> | 76 </td> |
| 80 | 77 |
| 81 <td> | 78 <td> |
| 82 <input type="button" value="Delete" | 79 <input type="button" value="Delete" i18n:attributes="value" |
| 83 tal:attributes="onClick python:'''retire('%s')'''%query.id"> | 80 tal:attributes="onClick python:'''retire('%s')'''%query.id"> |
| 84 </td> | 81 </td> |
| 85 </tr> | 82 </tr> |
| 86 | 83 |
| 87 <tr tal:define="queries python:db.query.filter(filterspec={'private_for':None})" | 84 <tr tal:define="queries python:db.query.filter(filterspec={'private_for':None})" |
| 88 tal:repeat="query queries"> | 85 tal:repeat="query queries"> |
| 89 <td><a tal:attributes="href string:${query/klass}?${query/url}" | 86 <td><a tal:attributes="href string:${query/klass}?${query/url}" |
| 90 tal:content="query/name">query</a></td> | 87 tal:content="query/name">query</a></td> |
| 91 | 88 |
| 92 <td metal:use-macro="template/macros/include" /> | 89 <td metal:use-macro="template/macros/include" /> |
| 93 <td colspan="3">[not yours to edit]</td> | 90 <td colspan="3" i18n:translate="">[not yours to edit]</td> |
| 94 </tr> | 91 </tr> |
| 95 | 92 |
| 96 <tr><td colspan="5"> | 93 <tr><td colspan="5"> |
| 97 <input type="hidden" name="@action" value="edit"> | 94 <input type="hidden" name="@action" value="edit"> |
| 98 <input type="hidden" name="@template" value="edit"> | 95 <input type="hidden" name="@template" value="edit"> |
| 99 <input type="submit" value="Save Selection"> | 96 <input type="submit" value="Save Selection" i18n:attributes="value"> |
| 100 </td></tr> | 97 </td></tr> |
| 101 | 98 |
| 102 </table> | 99 </table> |
| 103 | 100 |
| 104 </form> | 101 </form> |
